answersLogoWhite

0

Actually float and double are both numeric data types that are used to store large numbers. They can have a lot of digits after the decimal point in the number. The actual difference between them is in size. According to the Java Language Specification, a float is a 32-bit value, while a double is a 64-bit value. Otherwise they work in the same way with respect to one another.

User Avatar

Wiki User

14y ago

What else can I help you with?

Continue Learning about Engineering

What are advantages and disadvantages of Integer programming?

The advantages of integer arithmetic over floating point arithmetic is the absence of rounding errors. Rounding errors are an intrinsic aspect of floating point arithmetic, with the result that two or more floating point values cannot be compared for equality or inequality (or with other relational operators), as the exact same original value may be presented slightly differently by two or more floating point variables. Integer arithmetic does not show this symptom, and allows for simple and reliable comparison of numbers. However, the disadvantage of integer arithmetic is the limited value range. While scaled arithmetic (also known as fixed point arithmetic) allows for integer-based computation with a finite number of decimals, the total value range of a floating point variable is much larger. For example, a signed 32-bit integer variable can take values in the range -231..+231-1 (-2147483648..+2147483647), an IEEE 754 single precision floating point variable covers a value range of +/- 3.4028234 * 1038 in the same 32 bits.


What is a floating number?

A floating point number is one that contains an integer as well as a fractional part, for example 101.3625. These are often represented by their scientific notations as well, such as 1.013625E2


Does a number stored as an integer take up less space in the computer's memory than a floating points number?

It depends on the particular implementation's representation of integer and floating point number. The IEEE 754-2008 standard provides four basic resolutions, 16 bits (not common), 32 bit, 64 bits, and 128 bits (also not common). At the same time, integers can be 8 bits, 16 bits, 32 bits, 64 bits (in 64 bit platforms and some libraries on 32 bit platforms) and 128 bits (not common). In general, if you want to keep resolution down to the units digit, you can store a larger number in an integer than you can in a floating point, due to overhead in the exponent, but, at the same time, due to the scalability of floating point numbers, you can store larger numbers in floating point numbers if you are willing to lose resolution on the low-order end.


What is a giga flop?

A giga-flop stands for a billion FLOATING POINT instructions per second. It signifies nothing about the number of Integer or memory load/store/jump operations. It is primarily used in the Scientific Computing field, which mostly run large-scale simulations, which are (almost) exclusively floating point calculations.


Difference between single-point cutting tool use in lathe and shaping machine?

explain the difference between single point & multi point cutting tool

Related Questions

What are the key differences between floating point and integer data types?

The key difference between floating point and integer data types is how they store and represent numbers. Integer data types store whole numbers without any decimal points, while floating point data types store numbers with decimal points. Integer data types have a fixed range of values they can represent, while floating point data types can represent a wider range of values with varying levels of precision. Floating point data types are typically used for calculations that require decimal precision, while integer data types are used for whole number calculations.


What is difference between an integer variable and floting point variable?

The set of the possible values.


What is the smallest positive integer floating point value that can be represented in a computer system?

The smallest positive integer floating point value that can be represented in a computer system is typically around 1.4 x 10-45.


What is the largest integer and the largest floating-point number?

In real-world math, there is no "largest" integer or floating point number. This is covered by the concepts known as "infinity" and "irrationality." Depending on the processor and/or application, a number with significant digits into the thousands can be operated upon.


Is 9.6 and integer?

No, 9.6 is a floating-point number. Integers are whole numbers without fractional parts.


What are advantages and disadvantages of Integer programming?

The advantages of integer arithmetic over floating point arithmetic is the absence of rounding errors. Rounding errors are an intrinsic aspect of floating point arithmetic, with the result that two or more floating point values cannot be compared for equality or inequality (or with other relational operators), as the exact same original value may be presented slightly differently by two or more floating point variables. Integer arithmetic does not show this symptom, and allows for simple and reliable comparison of numbers. However, the disadvantage of integer arithmetic is the limited value range. While scaled arithmetic (also known as fixed point arithmetic) allows for integer-based computation with a finite number of decimals, the total value range of a floating point variable is much larger. For example, a signed 32-bit integer variable can take values in the range -231..+231-1 (-2147483648..+2147483647), an IEEE 754 single precision floating point variable covers a value range of +/- 3.4028234 * 1038 in the same 32 bits.


What is the difference between floating point and fixed point processor?

in fixed point processor there is no separate mantissa and exponent part usually the nuumber can be represented from -1.000000to 1.0000000 wheras in floating point processor mantissa and exponent are separated so you can increase the range of values by compromising accuracy


What is a floating number?

A floating point number is one that contains an integer as well as a fractional part, for example 101.3625. These are often represented by their scientific notations as well, such as 1.013625E2


What is the difference between integer numbers and float numbers?

Integer numbers : ...-5,-4,-3,-2,-1,0,1,2,3,4,5... Float numbers 1.25, 1.26 etc They are float numbers because its value can be altered after the point, which is based on an integer number.


How can the decimal real number 175.23 be represented as a 6 digit integer in floating point notation?

175.23*10^-2


How can the decimal real number 1385.58 be represented as a 6-digit integer in floating point notation?

138558 x 10-2


What is the difference between insertion point and cursor?

What is the deference between Insertion Point and Pointers?