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

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. @Eric

You would have to know the lo

View Tutorial          By: Guy at 2010-09-27 17:18:31

2. date span progarm sorce code in jsp by using strin
View Tutorial          By: prudhvi at 2013-01-27 13:55:09

3. i need to use sms and to creat using java so it is
View Tutorial          By: Abdulkerim at 2009-09-07 05:29:15

4. It's very helpful to me... Thanks...
View Tutorial          By: Nicks Patel at 2010-03-24 23:37:04

5. thanks or the infromation about switch statement
View Tutorial          By: mikko at 2008-09-01 23:48:44

6. it works well thanks
View Tutorial          By: Zahran at 2011-12-08 03:07:07

7. thxxx :) very simple explanation
View Tutorial          By: mohamed at 2012-09-09 04:16:06

8. Wed Sep 23 20:38:16 IST 2009:Sender:*** time out a
View Tutorial          By: charan at 2009-09-23 09:13:22

9. can we do it this procedure by iteration i know th
View Tutorial          By: sattar at 2010-05-03 03:00:20

10. Very Very nice explanation...
View Tutorial          By: anil at 2010-11-04 00:22:58