answersLogoWhite

0

It's a tricky area: Decimal numbers can be represented exactly. In contrast, numbers like 1.1 do not have an exact representation in binary floating point. End users typically would not expect 1.1 to display as 1.1000000000000001 as it does with binary floating point. The exactness carries over into arithmetic. In decimal floating point, 0.1 + 0.1 + 0.1 - 0.3 is exactly equal to zero. In binary floating point, the result is 5.5511151231257827e-017. While near to zero, the differences prevent reliable equality testing and differences can accumulate. For this reason, decimal is preferred in accounting applications which have strict equality invariants. So you have to be carefull how you store floating point decimals in binary.

It can also be used in a fraction. It must be simplufied then reduced and multiplied.

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

How do you represent floating point number in microprocessor?

It is somewhat complicated (search for the IEEE floating-point representation for more details), but the basic idea is that you have a few bits for the base, and a few bits for the exponent. The numbers are stored in binary, not in decimal, so the base and the exponent are the numbers "a" and "b" in a x 2b.


What is 4.2 85.37?

It is the decimal representation of two numbers.It is the decimal representation of two numbers.It is the decimal representation of two numbers.It is the decimal representation of two numbers.


What is the significance of the 4-bit mantissa in floating-point representation?

The 4-bit mantissa in floating-point representation is significant because it determines the precision of the decimal numbers that can be represented. A larger mantissa allows for more accurate representation of numbers, while a smaller mantissa may result in rounding errors and loss of precision.


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 43 as a decimal?

A decimal number is simply a way of representing a number in such a way that the place value of each digit is ten times that of the digit to its right. A decimal representation does not require a decimal point. So it is simply 43, as in the question.


What is the decimal representation of 1.4144?

It is already a decimal representation but as a fraction it is 884/625 simplified


What is the binary representation of the keyword "129" in decimal?

The binary representation of the keyword "129" in decimal is 10000001.


What is radix in floating point representation?

In all number bases, the radix simply represents the point that separates the integer component from the fractional component in a real number. In decimal notation, the radix is more commonly called a decimal point.


What is 12.0 in decimal?

A decimal number is simply a way of representing a number in such a way that the place value of each digit is ten times that of the digit to its right. A decimal representation does not require a decimal point. So the required decimal representation is 120, exactly as in the question.


What is a non repating decimal and a non termianting decimal?

It is a number whose decimal representation goes on forever without any repeating pattern. It is the decimal representation of an irrational number.


What is .05 as a decimal?

0.5 is already expressed as a decimal.


What is the utility of floating point representation of numbers?

A floating point number is, in normal mathematical terms, a real number. It's of the form: 1.0, 64.369, -55.5555555, and so forth. It basically means that the number can have a number a digits after a decimal point.