Arithmetic/Rounding

From Wikibooks, open books for an open world
Jump to: navigation, search

[edit] Rounding

To round a number, you need to look at the digits right of the decimal. If the first digit right of the decimal is equal or higher than 5 in rank (see Spelling out numbers), we add 1 to the integer part of the number, lopping off digits right of the decimal; this is known as rounding up. If the first digit right of the decimal place is less than 5 in rank, we simply rewrite the number again excluding all the digits right of the decimal place; this is known as rounding down. Note that after the number is rounded up or down all of the digits right of the decimal are discarded and only the digits left of the decimal are written.

[edit] Examples

1.49999999 rounds to 1
1.50000000 rounds to 2
1234.56 rounds to 1235

Personal tools
Namespaces
Variants
Actions
Navigation
Community
Toolbox
Sister projects
Print/export