Let's say I have 0.0 how do I convert it to 0?
I know that I can use Real.fromInt(0) to do the opposite (0 -> 0.0) but what about Real to Int?
In the SML documentation I read about a function toInt, but there was no example so I probably use it in the wrong way.
I tried this:
Real.toInt(a)
val a Real.toInt;
Both are wrong...