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.


How do you declare a variable in different language?

In Python, you declare a variable by simply assigning a value to a name, like x = 10. In Java, you need to specify the type, such as int x = 10;. In JavaScript, you can use let x = 10;, const x = 10;, or var x = 10;, depending on the scope you need. In C++, you would declare a variable with a type as well, like int x = 10;.


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.


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


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


Is destructor allowed in java?

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


Header files in Java programming?

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