Re: Novice Level Project - simple, fun and useful

new topic     » goto parent     » topic index » view thread      » older message » newer message
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.

Some discussion here

Spock

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu