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
- Data Science
- Android
- AJAX
- ASP.net
- C
- C++
- C#
- Cocoa
- Cloud Computing
- HTML5
- Java
- Javascript
- JSF
- JSP
- J2ME
- Java Beans
- EJB
- JDBC
- Linux
- Mac OS X
- iPhone
- MySQL
- Office 365
- Perl
- PHP
- Python
- Ruby
- VB.net
- Hibernate
- Struts
- SAP
- Trends
- Tech Reviews
- WebServices
- XML
- Certification
- Interview
categories
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
Count number of vowels, consonants and digits in a String in Java
Student marks calculation program 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
Archived Comments
1. Hi
I am newly in java. I have one dought. I
View Tutorial By: Saman at 2010-08-03 20:34:38
2. Hi i changed some codes in that and i gave interne
View Tutorial By: Göktuğ ÖZEL at 2013-03-13 22:44:55
3. Can anybody tell me how to send and receive SMS us
View Tutorial By: Bharat Lahori at 2010-02-04 07:14:19
4. Ku is quite correct. When you create any object, i
View Tutorial By: Avnish at 2010-10-28 04:00:20
5. It was actually useful!!! Thanks for explaining in
View Tutorial By: steph at 2010-01-28 21:59:06
6. This is a cool tutorial ! :) But I think in this s
View Tutorial By: ngocanh at 2013-07-11 02:33:06
7. The textarea value(finalresult) i want save in Tre
View Tutorial By: anbalagan.s at 2007-10-17 05:10:19
8. i want code to Migration from IPV4 to IPV6 at appl
View Tutorial By: i want code , can you send me at 2015-01-23 14:38:48
9. we know how declare constructor and methods but we
View Tutorial By: sreekanth at 2011-05-04 02:49:29
10. Its not working for me, also tried things written
View Tutorial By: webian at 2010-01-24 10:33:23