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



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 Mounika, The reason to the problem is that you
View Tutorial          By: Ramlak at 2008-04-26 20:06:21

2. Really a great article!
I have some questio

View Tutorial          By: ron at 2010-03-30 01:37:12

3. can i add new language for my freetts project ? I'
View Tutorial          By: [email protected] at 2011-08-09 06:49:52

4. Animation code(very Similar to this) is not workin
View Tutorial          By: Rakesh Kumar at 2012-04-23 09:42:55

5. Plz help me......its urgent
i need a code

View Tutorial          By: Nisha at 2010-03-22 00:38:42

6. i am trying to create a handy and powerful barcode
View Tutorial          By: incoming barcode scanner at 2014-06-23 04:23:42

7. excellent to easy going
View Tutorial          By: murali at 2009-11-15 23:13:21

8. its very easy to understand and implements.
View Tutorial          By: ashish at 2011-05-20 03:12:07

9. awesome. thanks for the info
View Tutorial          By: Darren at 2010-05-09 19:55:22

10. practical example of funcation overloding
View Tutorial          By: yogesh at 2010-12-19 08:39:06