[Ur] Float to Int conversion

Ron de Bruijn rmbruijn at gmail.com
Mon Oct 17 06:05:55 EDT 2011


Hi,

How can I select the integral part of a float without going via the string type 
(which appears to be the only way in which is it possible to do it now)?

Example:

val f:float -> int

f 1.0001  => 1
f 1.9999  => 1

-- 
Best regards,
   Ron de Bruijn



More information about the Ur mailing list