answersLogoWhite

0

float and double are types of numbers that accept decimals. Consider them as numbers in scientific notation. double allows a larger range of numbers than float, and more significant digits. Usually you would use double, unless you have some special situation, like a large array of numbers, and you decide the extra precision is not necessary.

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

Why java is not a pure object oriented?

java is not purely oops because of primitive types in java like int and float double


How is granite like an ice cream?

blablabla blabla blablablablablabla blabla blablabla


What does blablabla mean?

blablabla means i don't want to hear it and if there something discusting like a example:my freind was toking about things i hate & blablabla : like that


How to declare a float variable in java?

it is the same as an int, String, or any of the others:float myVar = 5.7f;If you try to assign a decimal number you must place an "f" at the end, otherwise Java will assume you are trying to assign a double.


Variables as object in java?

There are two main categories of variables in Java. They are primitive and non primitive. Primitive data types are the basic data types like int, float, char etc. These are not objects. The other non primitive data types are all types of Java Objects. Example: String, ArrayList etc.


What is the uno keyword?

The "uno" keyword is used in programming languages like Java to declare a variable that can only be assigned a value once. This helps ensure that the variable's value remains constant throughout the program.


Is destructor allowed in java?

No. Java does not support the concept of Destructors like C


Does Google Chrome support Java?

Yes, Google Chrome supports Java, although it has to be Version 6 Update 10 RC. You can download it here: http://java.sun.com/javase/downloads/ea.jsp


Header files in Java programming?

Java does not require header files like C/C++.


What is float ADT?

A float ADT refers to the Abstract Data Type that represents floating-point numbers in a computer program. It typically includes operations for arithmetic calculations like addition, subtraction, multiplication, and division on floating-point numbers. Floats are used to represent real numbers with decimal points in programming and are implemented in languages like C, Java, and Python.


How do you write the program to search for a word in an array of 5 words?

Write a loop that compares the word with every word in the array. For example, in Java, I think it would be something like this: // Declare some variables here ... for (int i = 0; i


What does java and java fx do?

JAVA is Group Of Technologies Like Java SE, Java EE, Java ME and Java FX is a Latest Technology Released From SUN Micro Systems Sun Developed Java FX as Counterpart to Microsoft's Graphics Libraries and Rich Support of Visual Studio to GUI Classes of .NET Framework. But in JAVA FX We can Do some advanced Graphics Operations in Programming Apart From AWT & Swing of Java SE and Rich Internet Application Technologies Like Enterprise Java Beans (EJB),JSP Of Java EE.