Re: Novice Level Project - simple, fun and useful
- Posted by Spock Sep 24, 2020
- 1655 views
ghaberek said...
ChrisB said...
Are you recording values as whole numbers, or as decimals? It won't matter so much when you are only doing addition and subtraction, but if it ever does tax or percentage calculations, then it can lead to rounding errors - I made this mistake in my veterinary practice management program, and had to a lot of little 'kludges' later ro get the right tax calculations.
Is tracking money values as integers of pennies usually the best approach then?
-Greg
This is what I do for currency values in my office programs. Conversion is only done for displaying the value or saving to file. OTOH for currency rates I use doubles.
Spock