Math Is Fun Forum

  Discussion about math, puzzles, games and fun.   Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ • π ƒ -¹ ² ³ °

You are not logged in.

#1 2008-03-27 06:14:29

lawrence
Member
Registered: 2008-03-27
Posts: 3

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

Offline

#2 2008-03-27 07:44:16

LuisRodg
Real Member
Registered: 2007-10-23
Posts: 322

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?

Offline

#3 2008-03-27 08:14:19

lawrence
Member
Registered: 2008-03-27
Posts: 3

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.

Offline

#4 2008-03-27 08:17:37

mathsyperson
Moderator
Registered: 2005-06-22
Posts: 4,900

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.

Offline

#5 2008-03-27 08:32:14

lawrence
Member
Registered: 2008-03-27
Posts: 3

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.

Offline

Board footer

Powered by FluxBB