diff options
| author | Jay Belanger | 2007-04-16 02:56:26 +0000 |
|---|---|---|
| committer | Jay Belanger | 2007-04-16 02:56:26 +0000 |
| commit | 6fd06144b6181439761afc8d55f649acd56bd0f8 (patch) | |
| tree | ca95d35ac82cbedfa805c80b9019b6746d73681e /man | |
| parent | bd149d6ec33b2b80cdb659e3d20af6fc1dca7c25 (diff) | |
| download | emacs-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.texi | 23 |
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 | |||
| 10632 | way. | 10632 | way. |
| 10633 | 10633 | ||
| 10634 | While floats are always @emph{stored} in decimal, they can be entered | 10634 | While floats are always @emph{stored} in decimal, they can be entered |
| 10635 | and displayed in any radix just like integers and fractions. The | 10635 | and displayed in any radix just like integers and fractions. Since a |
| 10636 | notation @samp{@var{radix}#@var{ddd}.@var{ddd}} is a floating-point | 10636 | float that is entered in a radix other that 10 will be converted to |
| 10637 | number whose digits are in the specified radix. Note that the @samp{.} | 10637 | decimal, the number that Calc stores may not be exactly the number that |
| 10638 | is more aptly referred to as a ``radix point'' than as a decimal | 10638 | was entered, it will be the closest decimal approximation given the |
| 10639 | point in this case. The number @samp{8#123.4567} is defined as | 10639 | current 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 | 10640 | is a floating-point number whose digits are in the specified radix. |
| 10641 | @samp{e} notation to write a non-decimal number in scientific notation. | 10641 | Note that the @samp{.} is more aptly referred to as a ``radix point'' |
| 10642 | The exponent is written in decimal, and is considered to be a power | 10642 | than as a decimal point in this case. The number @samp{8#123.4567} is |
| 10643 | of the radix: @samp{8#1234567e-4}. If the radix is 15 or above, the | 10643 | defined as @samp{8#1234567 * 8^-4}. If the radix is 14 or less, you can |
| 10644 | letter @samp{e} is a digit, so scientific notation must be written | 10644 | use @samp{e} notation to write a non-decimal number in scientific |
| 10645 | notation. The exponent is written in decimal, and is considered to be a | ||
| 10646 | power of the radix: @samp{8#1234567e-4}. If the radix is 15 or above, | ||
| 10647 | the letter @samp{e} is a digit, so scientific notation must be written | ||
| 10645 | out, e.g., @samp{16#123.4567*16^2}. The first two exercises of the | 10648 | out, e.g., @samp{16#123.4567*16^2}. The first two exercises of the |
| 10646 | Modes Tutorial explore some of the properties of non-decimal floats. | 10649 | Modes Tutorial explore some of the properties of non-decimal floats. |
| 10647 | 10650 | ||