Hi,

In CHICKEN 4.9.0rc1 and 4.10.0 both with numbers 4.6:

-----
#;1> (use numbers)
#;2> (define (log2 n) (/ (log n) (log 2)))
#;3> (= (log2 (expt 2 252)) (ceiling (log2 (expt 2 252))))
#t
#;4> (= (log2 (expt 2 251)) (ceiling (log2 (expt 2 251))))
#f
#;5> (log2 (expt 2 251))
251.0
#;6> (ceiling (log2 (expt 2 251)))
252.0
-----

Is it just late on a Friday? Am I crazy?



Regards,
@ndy

-- 
andy...@ashurst.eu.org
http://www.ashurst.eu.org/
0290 DA75 E982 7D99 A51F  E46A 387A 7695 7EBA 75FF


_______________________________________________
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to