Comment on Tutorial - float vs double data types in Java By Baski
Comment Added by : David
Comment Added at : 2009-10-08 13:47:08
Comment on Tutorial : float vs double data types in Java By Baski
"For example, float can be useful when representing dollars and cents."
This is wrong. VERY wrong. You should never, under any circumstances, use a float to represent money.
It's better to use scaled integers or, failing that, BCD.
- Data Science
- Cloud Computing
- Java Beans
- Mac OS X
- Office 365
- Tech Reviews
Subscribe to Tutorials
9. In listing 6.2 I don't see the variable name itsAg
View Tutorial By: JC at 2013-04-16 01:49:52