• It worked for 10.375 but not for 10.377.

    It is because this statement

    DecimalPart % (1.0 / Number) = 0.0

    is never true

    I tried making the tally table 10,000 but it still doesn't work.