Given a decimal number, find the smallest integer multiplier that gives an integer result

Posted by Davorin on Stack Overflow See other posts from Stack Overflow or by Davorin
Published on 2010-03-12T15:59:24Z Indexed on 2010/03/12 16:07 UTC
Read the original article Hit count: 226

Filed under:
|

Best to use an example to describe the problem. Lets say I have a decimal value 100.227273.

100.227273 * X = Y

I need to find the smallest possible integer X that gives integer Y.

© Stack Overflow or respective owner

Related posts about math

Related posts about algorithm