diff options
| -rw-r--r-- | lisp/float-sup.el | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/lisp/float-sup.el b/lisp/float-sup.el index eb186a48095..1a11d757959 100644 --- a/lisp/float-sup.el +++ b/lisp/float-sup.el | |||
| @@ -27,8 +27,6 @@ | |||
| 27 | 27 | ||
| 28 | ;; Provide a meaningful error message if we are running on | 28 | ;; Provide a meaningful error message if we are running on |
| 29 | ;; bare (non-float) emacs. | 29 | ;; bare (non-float) emacs. |
| 30 | ;; Can't test for 'floatp since that may be defined by float-imitation | ||
| 31 | ;; packages like float.el in this very directory. | ||
| 32 | 30 | ||
| 33 | (if (fboundp 'atan) | 31 | (if (fboundp 'atan) |
| 34 | nil | 32 | nil |
| @@ -36,17 +34,17 @@ | |||
| 36 | 34 | ||
| 37 | ;; provide an easy hook to tell if we are running with floats or not. | 35 | ;; provide an easy hook to tell if we are running with floats or not. |
| 38 | ;; define pi and e via math-lib calls. (much less prone to killer typos.) | 36 | ;; define pi and e via math-lib calls. (much less prone to killer typos.) |
| 39 | (defconst pi (* 4 (atan 1)) "The value of Pi (3.1415926...)") | 37 | (defconst pi (* 4 (atan 1)) "The value of Pi (3.1415926...).") |
| 40 | (defconst e (exp 1) "The value of e (2.7182818...)") | 38 | (defconst e (exp 1) "The value of e (2.7182818...).") |
| 41 | 39 | ||
| 42 | ;; Careful when editing this file ... typos here will be hard to spot. | 40 | ;; Careful when editing this file ... typos here will be hard to spot. |
| 43 | ;; (defconst pi 3.14159265358979323846264338327 | 41 | ;; (defconst pi 3.14159265358979323846264338327 |
| 44 | ;; "The value of Pi (3.14159265358979323846264338327...)") | 42 | ;; "The value of Pi (3.14159265358979323846264338327...)") |
| 45 | 43 | ||
| 46 | (defconst degrees-to-radians (/ pi 180.0) | 44 | (defconst degrees-to-radians (/ pi 180.0) |
| 47 | "Degrees to radian conversion constant") | 45 | "Degrees to radian conversion constant.") |
| 48 | (defconst radians-to-degrees (/ 180.0 pi) | 46 | (defconst radians-to-degrees (/ 180.0 pi) |
| 49 | "Radian to degree conversion constant") | 47 | "Radian to degree conversion constant.") |
| 50 | 48 | ||
| 51 | ;; these expand to a single multiply by a float when byte compiled | 49 | ;; these expand to a single multiply by a float when byte compiled |
| 52 | 50 | ||