[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/calc/calc-misc.el
From: |
Jay Belanger |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/calc/calc-misc.el |
Date: |
Wed, 24 Nov 2004 16:51:47 -0500 |
Index: emacs/lisp/calc/calc-misc.el
diff -c emacs/lisp/calc/calc-misc.el:1.13 emacs/lisp/calc/calc-misc.el:1.14
*** emacs/lisp/calc/calc-misc.el:1.13 Tue Oct 26 19:06:24 2004
--- emacs/lisp/calc/calc-misc.el Wed Nov 24 21:45:32 2004
***************
*** 3,10 ****
;; Copyright (C) 1990, 1991, 1992, 1993, 2001 Free Software Foundation, Inc.
;; Author: David Gillespie <address@hidden>
! ;; Maintainers: D. Goel <address@hidden>
! ;; Colin Walters <address@hidden>
;; This file is part of GNU Emacs.
--- 3,9 ----
;; Copyright (C) 1990, 1991, 1992, 1993, 2001 Free Software Foundation, Inc.
;; Author: David Gillespie <address@hidden>
! ;; Maintainer: Jay Belanger <address@hidden>
;; This file is part of GNU Emacs.
***************
*** 593,602 ****
;;; Coerce A to be an integer (by truncation toward zero). [I N] [Public]
! (defun math-trunc (a &optional prec)
! (cond (prec
(calc-extensions)
! (math-trunc-special a prec))
((Math-integerp a) a)
((Math-looks-negp a)
(math-neg (math-trunc (math-neg a))))
--- 592,605 ----
;;; Coerce A to be an integer (by truncation toward zero). [I N] [Public]
!
! ;; The variable math-trunc-prec is local to math-trunc, but used by
! ;; math-trunc-fancy in calc-arith.el, which is called by math-trunc.
!
! (defun math-trunc (a &optional math-trunc-prec)
! (cond (math-trunc-prec
(calc-extensions)
! (math-trunc-special a math-trunc-prec))
((Math-integerp a) a)
((Math-looks-negp a)
(math-neg (math-trunc (math-neg a))))
***************
*** 607,616 ****
(defalias 'calcFunc-trunc 'math-trunc)
;;; Coerce A to be an integer (by truncation toward minus infinity). [I N]
! (defun math-floor (a &optional prec) ; [Public]
! (cond (prec
(calc-extensions)
! (math-floor-special a prec))
((Math-integerp a) a)
((Math-messy-integerp a) (math-trunc a))
((Math-realp a)
--- 610,623 ----
(defalias 'calcFunc-trunc 'math-trunc)
;;; Coerce A to be an integer (by truncation toward minus infinity). [I N]
!
! ;; The variable math-floor-prec is local to math-floor, but used by
! ;; math-floor-fancy in calc-arith.el, which is called by math-floor.
!
! (defun math-floor (a &optional math-floor-prec) ; [Public]
! (cond (math-floor-prec
(calc-extensions)
! (math-floor-special a math-floor-prec))
((Math-integerp a) a)
((Math-messy-integerp a) (math-trunc a))
((Math-realp a)
- [Emacs-diffs] Changes to emacs/lisp/calc/calc-misc.el,
Jay Belanger <=