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.
- Cloud Computing
- Java Beans
- Mac OS X
- Office 365
- Tech Reviews
Subscribe to Tutorials
6. Pastoral College is a small college in the Midwest
View Tutorial By: James Chui at 2015-08-03 00:48:50
8. how limit for no of users for particular role to s
View Tutorial By: priyanka at 2014-12-16 13:39:55
10. good explanation with sample example makes me to u
View Tutorial By: jagan.java at 2013-01-04 09:10:21