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. This works with inserts but it is very slow for lo
View Tutorial          By: Antonio Pereira at 2011-02-04 08:54:45

2. I have initialized a int array while declaring.
View Tutorial          By: Prashanth at 2011-09-15 11:16:40

3. how about if you attach microsoft word documents?p
View Tutorial          By: gian at 2012-01-06 03:11:44

4. I am very comfortable with this example, its very
View Tutorial          By: Inam at 2010-11-07 03:04:46

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

6. Hi, You need to place a control on your form

View Tutorial          By: Ranjit at 2010-02-09 02:29:40

7. hi purushothaman
thanks for your kind resp

View Tutorial          By: sandeep das at 2009-04-11 10:42:58

8. Sir , I am doing BCA . I want to know more about j
View Tutorial          By: sandeep Namdev at 2008-09-16 05:47:22

9. HI,

The function is throwing an err

View Tutorial          By: Vamshi at 2010-08-31 05:04:03

10. Hi you can find inheritance example in Java in the
View Tutorial          By: Mashoud at 2008-04-26 20:12:37