Project Euler #226: A Scoop of Blancmange

  • [deleted]
    + 1 comment

    I get the integral part, but how do i turn a decimal such as .499999957 or something like that to 1/2? etc with the rest of the decimals