use integers, multiplied to the appropriate level of precision. This gives precise answers, but there can be headaches converting for storage or output.
This last approach is what @GoToLoop is doing. So, if you wanted to use values with two digits of decimal precision, then:
Answers
how would your write 1/3 as a decimal number?
that's the same problem computers have (but they use binary)
Approaches:
This last approach is what @GoToLoop is doing. So, if you wanted to use values with two digits of decimal precision, then:
...would become: