comparison lisp/emacs-lisp/float.el @ 807:4f28bd14272c

*** empty log message ***
author Eric S. Raymond <esr@snark.thyrsus.com>
date Thu, 16 Jul 1992 21:47:34 +0000
parents 08eb386dd0f3
children e694e0879463
comparison
equal deleted inserted replaced
806:d42e1151eed8 807:4f28bd14272c
1 ;;; float.el --- floating point arithmetic package. 1 ;;; float.el --- floating point arithmetic package.
2 2
3 ;; Author: Bill Rosenblatt
4 ;; Maintainer: FSF
5 ;; Last-Modified: 16 Mar 1992
6
3 ;; Copyright (C) 1986 Free Software Foundation, Inc. 7 ;; Copyright (C) 1986 Free Software Foundation, Inc.
4 ;; Author Bill Rosenblatt
5 8
6 ;; This file is part of GNU Emacs. 9 ;; This file is part of GNU Emacs.
7 10
8 ;; GNU Emacs is free software; you can redistribute it and/or modify 11 ;; GNU Emacs is free software; you can redistribute it and/or modify
9 ;; it under the terms of the GNU General Public License as published by 12 ;; it under the terms of the GNU General Public License as published by
10 ;; the Free Software Foundation; either version 1, or (at your option) 13 ;; the Free Software Foundation; either version 2, or (at your option)
11 ;; any later version. 14 ;; any later version.
12 15
13 ;; GNU Emacs is distributed in the hope that it will be useful, 16 ;; GNU Emacs is distributed in the hope that it will be useful,
14 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of 17 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
15 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 ;; GNU General Public License for more details. 19 ;; GNU General Public License for more details.
17 20
18 ;; You should have received a copy of the GNU General Public License 21 ;; You should have received a copy of the GNU General Public License
19 ;; along with GNU Emacs; see the file COPYING. If not, write to 22 ;; along with GNU Emacs; see the file COPYING. If not, write to
20 ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. 23 ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
24
25 ;;; Commentary:
21 26
22 ;; Floating point numbers are represented by dot-pairs (mant . exp) 27 ;; Floating point numbers are represented by dot-pairs (mant . exp)
23 ;; where mant is the 24-bit signed integral mantissa and exp is the 28 ;; where mant is the 24-bit signed integral mantissa and exp is the
24 ;; base 2 exponent. 29 ;; base 2 exponent.
25 ;; 30 ;;
43 ;; 48 ;;
44 ;; 49 ;;
45 ;; Bill Rosenblatt 50 ;; Bill Rosenblatt
46 ;; June 20, 1986 51 ;; June 20, 1986
47 ;; 52 ;;
53
54 ;;; Code:
48 55
49 ;; fundamental implementation constants 56 ;; fundamental implementation constants
50 (defconst exp-base 2 57 (defconst exp-base 2
51 "Base of exponent in this floating point representation.") 58 "Base of exponent in this floating point representation.")
52 59