How do you make a decimal into a whole number
Asked by admin @ in Mathematics viewed by 333 People
How do I turn a decimal into a whole number? :)
Asked by admin @ in Mathematics viewed by 333 People
How do I turn a decimal into a whole number? :)
Answered by admin @
There is a confusion here. “Decimal” is not a number set. “Whole numbers” is.
“Decimal” has been used to mean three different things about the representation of numbers:
- Numbers written using a base 10 place value system
- The decimal point that separates the integer and fractional parts of a number written in base 10. (Some countries use a comma. Some folks refer to the point used for this purpose in other bases as a decimal too for extra confusion.)
- A number written in the above form that has some numerals, probably nonzero, written to the right of the point. In other words, a number written in decimal form with a nonzero fractional part.
I'm guessing that the usage in this question is referring to the third meaning of “decimal” and will interpret the question as being not about representation of numbers but about transformation of numbers.
To wit, “What are some popular ways real numbers with nonzero fractional parts can be mapped to integers?”
I hope this is the correct interpretation.
There are a few common ways:
- Round towards zero: Ignore the fractional part and keep only the integral part.
- Floor: Take the greatest integer less than the number in question.
- Ceiling: Take the least integer greater than the number in question.
- Round to the nearest integer: Ignore the fractional part if it's less than a half. Otherwise, round away from zero.
These are the main ways of picking integers close to the number in question, but obviously, there are infinitely many ways to map sets of real numbers to mergers, so it is unclear if any of these are what the asker was looking for.
Asked by maham237 @ in English viewed by 387 persons
Asked by maham237 @ in Mathematics viewed by 293 persons
Asked by admin @ in Mathematics viewed by 266 persons
Asked by admin @ in Mathematics viewed by 328 persons
Asked by admin @ in Mathematics viewed by 309 persons
Asked by admin @ in Mathematics viewed by 324 persons
Asked by admin @ in Mathematics viewed by 283 persons
Asked by admin @ in Computers and Technology viewed by 328 persons
Asked by admin @ in Social Studies viewed by 321 persons
Asked by admin @ in Math viewed by 340 persons
Asked by admin @ in Math viewed by 312 persons
Asked by admin @ in Computer Science viewed by 392 persons
Asked by admin @ in Math viewed by 322 persons
Asked by admin @ in Math viewed by 307 persons
Asked by admin @ in Math viewed by 341 persons
Asked by maham237 @ in Mathematics viewed by 18341 persons
Asked by admin @ in Mathematics viewed by 8139 persons
Asked by admin @ in Mathematics viewed by 5764 persons
Asked by maham237 @ in Mathematics viewed by 3929 persons
Asked by maham237 @ in Mathematics viewed by 3246 persons
Asked by maham237 @ in Mathematics viewed by 2918 persons
Asked by maham237 @ in Mathematics viewed by 2778 persons
Asked by maham237 @ in Mathematics viewed by 2572 persons
Asked by maham237 @ in Mathematics viewed by 2473 persons
Asked by maham237 @ in Mathematics viewed by 2423 persons
Asked by maham237 @ in Mathematics viewed by 2413 persons
Asked by maham237 @ in Mathematics viewed by 2068 persons
Asked by maham237 @ in Mathematics viewed by 1788 persons