comparison man/lispref/numbers.texi @ 257:65c19d2020f7 r20-5b27

Import from CVS: tag r20-5b27
author cvs
date Mon, 13 Aug 2007 10:22:03 +0200
parents 54cc21c15cbb
children 7df0dd720c89
comparison
equal deleted inserted replaced
256:19076a51efde 257:65c19d2020f7
8 @cindex integers 8 @cindex integers
9 @cindex numbers 9 @cindex numbers
10 10
11 XEmacs supports two numeric data types: @dfn{integers} and 11 XEmacs supports two numeric data types: @dfn{integers} and
12 @dfn{floating point numbers}. Integers are whole numbers such as 12 @dfn{floating point numbers}. Integers are whole numbers such as
13 @minus{}3, 0, 7, 13, and 511. Their values are exact. Floating point 13 @minus{}3, 0, #b0111, #xFEED, #o744. Their values are exact. The
14 number prefixes `#b', `#o', and `#x' are supported to represent numbers
15 in binary, octal, and hexadecimal notation (or radix). Floating point
14 numbers are numbers with fractional parts, such as @minus{}4.5, 0.0, or 16 numbers are numbers with fractional parts, such as @minus{}4.5, 0.0, or
15 2.71828. They can also be expressed in exponential notation: 17 2.71828. They can also be expressed in exponential notation: 1.5e2
16 1.5e2 equals 150; in this example, @samp{e2} stands for ten to the 18 equals 150; in this example, @samp{e2} stands for ten to the second
17 second power, and is multiplied by 1.5. Floating point values are not 19 power, and is multiplied by 1.5. Floating point values are not exact;
18 exact; they have a fixed, limited amount of precision. 20 they have a fixed, limited amount of precision.
19 21
20 @menu 22 @menu
21 * Integer Basics:: Representation and range of integers. 23 * Integer Basics:: Representation and range of integers.
22 * Float Basics:: Representation and range of floating point. 24 * Float Basics:: Representation and range of floating point.
23 * Predicates on Numbers:: Testing for numbers. 25 * Predicates on Numbers:: Testing for numbers.