Math Is Fun Forum
  Discussion about math, puzzles, games and fun.   Useful symbols: √ ∞ ≠ ≤ ≥ ≈ ⇒ ∈ Δ θ ∴ ∑ ∫ π -

Login

Username

Password

Not registered yet?

#1 2008-03-28 05:14:29

lawrence
Novice

Offline

Converting from one form to another

I have a number, say 145725, and I have to convert it to another form in the following way 145 + ((72 + 5/2) / 100), where 145 is the first 3 digit, 72 is fourth & fifth digits, 5 is the last digit.

I get the result. Now I have to convert back to original form. I tried to find out a general formula. But failed to do so. Can anybody help me out?

Thanks,
Lawrence

#2 2008-03-28 06:44:16

LuisRodg
Real Member

Offline

Re: Converting from one form to another

145 + ((72 + 5/2) / 100) is not equal to 145725.

Are you talking about concatenation or regular mathematical addition?

#3 2008-03-28 07:14:19

lawrence
Novice

Offline

Re: Converting from one form to another

yes,     145 + ((72 + 5/2) / 100) is not equal to 145725.

Assume, the number as a string. Please do not compare its equality. But I have to convert back it to original form.

#4 2008-03-28 07:17:37

mathsyperson
Moderator

Offline

Re: Converting from one form to another

If I'm understanding this correctly, you're taking some 6-digit number abcdef and using that to get a new number, given by abc + (de + f/2)/100.

In your example, 145725 would convert to 145 + (72 + 5/2)/100 = 145.745.
You want to find a way of taking a number that has been converted already, and working out what number was used to convert it.

Unfortunately, there is more than one number that produces 145.745, when you convert numbers using that method. You can have:

- 145741
- 145733
- 145725
- 145717
- 145709

Since more than one number can give the same converted number, you can't deduce what number was used to produce a converted number (in general).


Why did the vector cross the road?
It wanted to be normal.

#5 2008-03-28 07:32:14

lawrence
Novice

Offline

Re: Converting from one form to another

oh..You great..

Thats what I want. Is there any possibility to get it, since I need it.

Thanks.

Board footer

Powered by FluxBB