comparison lispref/objects.texi @ 36987:3a9bdf46b7db

Floating point is always available; say a little about what it is.
author Richard M. Stallman <rms@gnu.org>
date Mon, 26 Mar 2001 03:17:58 +0000
parents e6bffd5c5287
children 1c8b0cb32917
comparison
equal deleted inserted replaced
36986:a206784e7db9 36987:3a9bdf46b7db
199 @xref{Numbers}, for more information. 199 @xref{Numbers}, for more information.
200 200
201 @node Floating Point Type 201 @node Floating Point Type
202 @subsection Floating Point Type 202 @subsection Floating Point Type
203 203
204 Emacs supports floating point numbers (though there is a compilation 204 Floating point numbers are the computer equivalent of scientific
205 option to disable them). The precise range of floating point numbers is 205 notation. The precise number of significant figures and the range of
206 machine-specific. 206 possible exponents is machine-specific; Emacs always uses the C data
207 type @code{double} to store the value.
207 208
208 The printed representation for floating point numbers requires either 209 The printed representation for floating point numbers requires either
209 a decimal point (with at least one digit following), an exponent, or 210 a decimal point (with at least one digit following), an exponent, or
210 both. For example, @samp{1500.0}, @samp{15e2}, @samp{15.0e2}, 211 both. For example, @samp{1500.0}, @samp{15e2}, @samp{15.0e2},
211 @samp{1.5e3}, and @samp{.15e4} are five ways of writing a floating point 212 @samp{1.5e3}, and @samp{.15e4} are five ways of writing a floating point