[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

short-float bug?



Hello Cambridge,
 
Please consider this strange behavior.
 
Welcome to Macintosh Common Lisp Version 2.0!
? most-positive-short-float
131071.99S0
? (1+ (coerce most-positive-short-float 'double-float))
131072.9921875
? (1+ most-positive-short-float)
> Error: Floating point overflow
> While executing: toplevel-eval
> Type Command-. to abort.
See the Restarts... menu item for further choices.
1 > most-positive-fixnum
268435455
1 > (1+ most-positive-fixnum)
268435456
1 >
 
Shouldn't the short-float be promoted automatically, as is a fixnum to a
bignum?
 
Also, why no support for arrays of short-float?
 
Please advise.
 
Bob Schaaf,
AIG Claims Litigation
 
PS
Final release of 2.0 looks great, but still some stuff missing.