I don't understand the implicit conversion of an int to float
let
x=3.14
two= 2
const zwei=2
echo 2*x # OK
echo zwei*x # OK
# but
echo two*x # type mismatch: got <int, float64>
Why doesn't Nim convert an int to the larger type float as do C and C++ ?
Thank you both!
I wished I could tell Nim to use int32 as default int (on a 64bit machine)