Next: Strings and Characters, Previous: Lisp Data Types, Up: Top [Contents][Index]

## 3 Numbers

GNU Emacs supports two numeric data types: integers and floating-point numbers. Integers are whole numbers such as âˆ’3, 0, 7, 13, and 511. Floating-point numbers are numbers with fractional parts, such as âˆ’4.5, 0.0, and 2.71828. They can also be expressed in exponential notation: ‘`1.5e2`’ is the same as ‘`150.0`’; here, ‘`e2`’ stands for ten to the second power, and that is multiplied by 1.5. Integer computations are exact, though they may overflow. Floating-point computations often involve rounding errors, as the numbers have a fixed amount of precision.