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.


View Tutorial



Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. The logo is a cup of coffee. Java is an island in
View Tutorial          By: kamal goduguluri at 2012-05-30 15:34:21

2. quite helpful
View Tutorial          By: kezyRoan at 2011-06-11 03:58:52

3. Its super explanation
View Tutorial          By: jose at 2011-12-08 13:36:29

4. Nice Article....
View Tutorial          By: Vipin Joshi at 2008-04-13 15:35:42

5. it very usefull to introduse the j2me to me

View Tutorial          By: Sudhir at 2011-08-31 13:05:40

6. Your explanation is good but, it will be better i
View Tutorial          By: Jabaraj at 2010-03-22 06:02:33

7. very well to understand
View Tutorial          By: Siva Krishna N at 2007-02-16 23:06:07

8. please send me the code of this movable clock and
View Tutorial          By: dafi at 2008-05-14 05:06:08

9. if the simple example with syntex than very easy t
View Tutorial          By: Rikunj suthar at 2011-08-31 06:57:17

10. any one can send serial port communication using n
View Tutorial          By: prakash at 2013-07-01 15:44:48