Mathematically how do I get the cents from a dollar value (ex: $21.99$)?
As a programmer, I would simply convert to a string and grab everything after the decimal... but I would think this would be doable with pure math, or maybe I have too much faith in the black magic
EDITED
I wasn't clear.
Is it possible with pure math (no computer API.. just old school paper and pencil) to find the fractional part of any given decimal with any given precision?
Is there a formula?
Given xx.yyyy is there a formula that would return yy?