You are not logged in.

- Topics: Active | Unanswered

Pages: **1**

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

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

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

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

Are you talking about concatenation or regular mathematical addition?

Offline

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

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

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

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

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

oh..You great..

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

Thanks.

Offline

Pages: **1**