aboutsummaryrefslogtreecommitdiffstats
path: root/man
diff options
context:
space:
mode:
authorJay Belanger2007-04-16 02:56:26 +0000
committerJay Belanger2007-04-16 02:56:26 +0000
commit6fd06144b6181439761afc8d55f649acd56bd0f8 (patch)
treeca95d35ac82cbedfa805c80b9019b6746d73681e /man
parentbd149d6ec33b2b80cdb659e3d20af6fc1dca7c25 (diff)
downloademacs-6fd06144b6181439761afc8d55f649acd56bd0f8.tar.gz
emacs-6fd06144b6181439761afc8d55f649acd56bd0f8.zip
(Floats): Mention that when non-decimal floats are entered, only
approximations are stored.
Diffstat (limited to 'man')
-rw-r--r--man/calc.texi23
1 files changed, 13 insertions, 10 deletions
diff --git a/man/calc.texi b/man/calc.texi
index 15207cc59b8..5ea6ecc1c84 100644
--- a/man/calc.texi
+++ b/man/calc.texi
@@ -10632,16 +10632,19 @@ Calculator's arithmetic is not intended to be IEEE-conformant in any
10632way. 10632way.
10633 10633
10634While floats are always @emph{stored} in decimal, they can be entered 10634While floats are always @emph{stored} in decimal, they can be entered
10635and displayed in any radix just like integers and fractions. The 10635and displayed in any radix just like integers and fractions. Since a
10636notation @samp{@var{radix}#@var{ddd}.@var{ddd}} is a floating-point 10636float that is entered in a radix other that 10 will be converted to
10637number whose digits are in the specified radix. Note that the @samp{.} 10637decimal, the number that Calc stores may not be exactly the number that
10638is more aptly referred to as a ``radix point'' than as a decimal 10638was entered, it will be the closest decimal approximation given the
10639point in this case. The number @samp{8#123.4567} is defined as 10639current precison. The notation @samp{@var{radix}#@var{ddd}.@var{ddd}}
10640@samp{8#1234567 * 8^-4}. If the radix is 14 or less, you can use 10640is a floating-point number whose digits are in the specified radix.
10641@samp{e} notation to write a non-decimal number in scientific notation. 10641Note that the @samp{.} is more aptly referred to as a ``radix point''
10642The exponent is written in decimal, and is considered to be a power 10642than as a decimal point in this case. The number @samp{8#123.4567} is
10643of the radix: @samp{8#1234567e-4}. If the radix is 15 or above, the 10643defined as @samp{8#1234567 * 8^-4}. If the radix is 14 or less, you can
10644letter @samp{e} is a digit, so scientific notation must be written 10644use @samp{e} notation to write a non-decimal number in scientific
10645notation. The exponent is written in decimal, and is considered to be a
10646power of the radix: @samp{8#1234567e-4}. If the radix is 15 or above,
10647the letter @samp{e} is a digit, so scientific notation must be written
10645out, e.g., @samp{16#123.4567*16^2}. The first two exercises of the 10648out, e.g., @samp{16#123.4567*16^2}. The first two exercises of the
10646Modes Tutorial explore some of the properties of non-decimal floats. 10649Modes Tutorial explore some of the properties of non-decimal floats.
10647 10650