Comment on Tutorial - float vs double data types in Java By Baski



Comment Added by : robert

Comment Added at : 2014-12-12 07:48:59

Comment on Tutorial : float vs double data types in Java By Baski
from docs api api/java/awt/Frame/setOpacity:

public void setOpacity(float opacity)
Sets the opacity of the window.
The opacity value is in the range [0..1]
//

commenting because if float isn't good for precision it's strange to me oracle would choose float for this value


View Tutorial



Subscribe to Tutorials

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. hi
this is helpful, but file store it in m

View Tutorial          By: Mahesh at 2011-11-10 06:52:39

2. tnx man that was short and well explained...
View Tutorial          By: jsf noob at 2012-02-02 13:24:12

3. The tutorial, it's very easy to be understood

View Tutorial          By: newcomer at 2012-04-25 03:49:35

4. good explanation ,it is very very understandable
View Tutorial          By: chaitanya at 2011-10-27 16:21:55

5. Impressing answer guys...
View Tutorial          By: Jayeeta Pal at 2011-06-28 03:18:26

6. super j2me introduction
View Tutorial          By: govinth at 2012-02-05 09:33:18

7. all are easy to understanding codes. . . thanks
View Tutorial          By: kadhir at 2011-06-27 03:33:30

8. Really awesome keep posting ........
View Tutorial          By: viswanath at 2013-01-30 07:38:13

9. the example is from herbert schildt complete ref..
View Tutorial          By: dui_prithibi at 2012-11-26 12:59:15

10. You talk about "dictionary order". How w
View Tutorial          By: Magnus A at 2010-08-31 22:58:06