Ignore:
Timestamp:
03/17/05 15:05:09 (16 years ago)
Author:
piso
Message:

SINGLE-FLOAT support.

File:
1 edited

Legend:

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

    r7962 r8784  
    11;;; numbers.lisp
    22;;;
    3 ;;; Copyright (C) 2003-2004 Peter Graves
    4 ;;; $Id: numbers.lisp,v 1.34 2004-10-12 17:03:00 piso Exp $
     3;;; Copyright (C) 2003-2005 Peter Graves
     4;;; $Id: numbers.lisp,v 1.35 2005-03-17 15:04:23 piso Exp $
    55;;;
    66;;; This program is free software; you can redistribute it and/or
     
    158158             (complex
    159159              (if (zerop (realpart number))
    160                   (* (/ pi 2) (signum (imagpart number)))
     160                  (coerce (* (/ pi 2) (signum (imagpart number)))
     161                          (if (typep (imagpart number) 'double-float)
     162                              'double-float 'single-float))
    161163                  (atan (imagpart number) (realpart number))))))
Note: See TracChangeset for help on using the changeset viewer.