mo.z
What is the diffrence between a decimal number and a floating number ? đŸ€”đŸ€”
May 23, 2022 2:19 PM
Answers · 3
There is no such thing as a "decimal number". Nor is there such a thing as a "floating number". Those concepts do not exist. I am a mathematician, so I can tell you this with some authority. Those names "decimal" and "floating point" are names of REPRESENTATIONS of numbers. They do not describe numbers themselves. A decimal representation of a number consists of digits and, possibly one decimal. A floating point representation consists of a decimal representation followed by a power of 10. For example, 1.325 x 10^7 is a floating point representation that represents the same number as 13,250,000. If you were to multiply that number by 10, you would produce the number that has the floating point representation 1.325 x 10^8. In a floating point representation, the position of the decimal is flexible. That is why it is called "floating". For example, the following floating point representations all represent the same number: 1.325 x 10^7 13.25 x 10^6 132.5 x 10^5
June 1, 2022
Hello, The dot in a decimal number is called a decimal point. The digits following the decimal point show a value smaller than one. Here's an example of a decimal number 17.48, in which 17 is the whole number, while 48 is the decimal part. An integer (more commonly called an int) is a number without a decimal point. A float is a floating-point number, which means it is a number that has a decimal place. Floats are used when more precision is needed. Regards.
May 23, 2022
The float numbers are rounded up, qo they are not as exact as the decimal numbers whichvarz an exact and precise representation of the value
May 23, 2022
Still haven’t found your answers?
Write down your questions and let the native speakers help you!