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

FLOAT-PRECISION

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.