Changeset 6003


Ignore:
Timestamp:
02/27/04 13:05:29 (17 years ago)
Author:
piso
Message:

FLOAT-PRECISION

Location:
trunk/j/src/org/armedbear/lisp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/j/src/org/armedbear/lisp/autoloads.lisp

    r5840 r6003  
    22;;;
    33;;; Copyright (C) 2003-2004 Peter Graves
    4 ;;; $Id: autoloads.lisp,v 1.110 2004-02-15 18:47:52 piso Exp $
     4;;; $Id: autoloads.lisp,v 1.111 2004-02-27 13:05:29 piso Exp $
    55;;;
    66;;; This program is free software; you can redistribute it and/or
     
    7878(autoload 'directory "directory.lisp")
    7979(autoload '(signum floor ceiling round rem mod ftruncate ffloor fceiling fround
    80             rational rationalize gcd isqrt float-sign decode-float conjugate
    81             phase cis)
     80            rational rationalize gcd isqrt float-precision float-sign
     81            decode-float conjugate phase cis)
    8282          "numbers.lisp")
    8383(autoload 'boole)
  • trunk/j/src/org/armedbear/lisp/numbers.lisp

    r5728 r6003  
    22;;;
    33;;; Copyright (C) 2003-2004 Peter Graves
    4 ;;; $Id: numbers.lisp,v 1.20 2004-02-09 13:07:21 piso Exp $
     4;;; $Id: numbers.lisp,v 1.21 2004-02-27 13:05:10 piso Exp $
    55;;;
    66;;; This program is free software; you can redistribute it and/or
     
    199199      (setq init-value iterated-value))))))
    200200
     201(defun float-precision (float)
     202  (if (floatp float)
     203      (if (zerop float) 0 53)
     204      (error 'simple-type-error
     205             :format-control "~S is not of type FLOAT."
     206             :format-arguments (list float))))
    201207
    202208(defun float-sign (float1 &optional (float2 (float 1 float1)))
Note: See TracChangeset for help on using the changeset viewer.