On Apr 24, 2013, at 5:17 PM, Mikael wrote:
I'd love to see the flonum to integer speed a bit higher (yellow above), I mean in C that's just double d; int i = (int) d; .
If you want to do that, you can do (##flonum->fixnum d) (undocumented, internal function):
(##flonum->fixnum 5.5)
5
(##flonum->fixnum -5.5)
-5
But that isn't floor; that doesn't work for large flonums.
If you want C, you can write C in Gambit. Many people don't understand the semantics of the numerical operations in Scheme generally, or in Gambit in particular.
Brad