(int (exp (gammaln 6))) ;=> 119
Posted: Fri Feb 18, 2011 1:48 am
Hello, Lutz.
The problem that does not correctly convert float to integer was found.
The problem that does not correctly convert float to integer was found.
Code: Select all
newLISP v.10.3.0 on Linux IPv4/6 UTF-8, execute 'newlisp -h' for more info.
> (setq x (exp (gammaln 6)))
120
> (float? x)
true
> (int x)
119
> (bits x)
"1110111" ; (int "1110111" 0 2) is 119
> (bits 120.0)
"1111000"
> (dump x)
(147342976 387 147335024 -9 1079902207)