var
x: int64 = 10
y: int64 = 3
echo float64(x)/float64(y)
see http://nimrod-lang.org/manual.html#type-conversions@micklat: Thanks, that works.
@Varriount: Does toFloat work with int64? I get this error:
Error: type mismatch: got (int64) but expected one of: system.toFloat(i: int): float
import
StrUtils
var
a: int64 = 10
b: int64 = 3
echo formatFloat(a.float64 / b.float64, FFDecimal, 2) # prints '3.33'