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



Subscribe to Tutorials

Related Tutorials

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

Java program to check if user input is an even number

Archived Comments

1. please send basic sample programs & explanatio
View Tutorial          By: rose at 2013-01-16 04:43:38

2. I got error during using above code if There is ne
View Tutorial          By: Sunil at 2009-12-28 05:22:45

3. not satisfied friend. for Socket class it asks to
View Tutorial          By: Gaurav at 2009-01-28 07:34:42

4. thanks becase i am very confuse what is work how t
View Tutorial          By: arvind at 2011-01-09 14:41:42

5. if suppose i am having connection pool max size 30
View Tutorial          By: Shrikant at 2012-07-20 12:09:33

6. this is very good example.
View Tutorial          By: jyoti raman ray at 2010-10-13 22:17:09

7. super excellent
View Tutorial          By: mani at 2013-05-27 05:32:06

8. very good exmpl and explantion
View Tutorial          By: harshita negi at 2013-10-16 02:19:35

9. wen i run i get dis error

jdbc:mysq

View Tutorial          By: sandeep at 2009-11-24 08:24:20

10. this is because dear u r using here postfix increm
View Tutorial          By: sajid at 2011-09-06 20:51:54