General information
Category:
Coding, syntax & commands
Hey George
2 4 8 16 32 64 YEP
The inputs are converted to decimal for calculations and converted back for the print out...
John
>>>Actually, the second half of the question is kind of intriguing.
>>
>>Definately. You'll notice I didn't even try to answer that part!
>
>Me too!< g >
>
>My initial reaction was along the lines of first finding out the number of digits to the right of the decimal point. That'll give us the denominator via 10 ^ n. Then it'd be a matter of finding the common factors. The problem would get easier if all the fractions had a value that could be reached via 2 ^ n in the denominator. From the look of John's problem, that may be the case, since it looks like some sort of measurement. I can't recall seeing a measurement that used a fraction that didn't.
>
>Hey, John, are all the fraction a power of 2 in the denominator (1/2, 1/4, 1/8, etc.)?
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only