fesetround()/fegetround() are part of C99, and amazingly, also present in the Windows CRT, it might be possible to try to do this with FFI only?
IIRC the numerical model is supposed to act identical across platforms; whether it would actually affect anything depends on how the VM achieves that; I assume it's done by explicitly setting fp state to be identical (including rounding mode), rather than using some library which avoids x87/sse ops entirely, but I haven't actually looked. For the same reason, I hope you intend roundByMethodXWhile: to be a mandatory API, forgetting to set the mode back when done (or, never getting there due to errors, etc) is an area best left unexplored ;) Cheers, Henry -- Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html