Hi,
I try to access the bits of double, but the only way I found is to fallback to C code (which is ugly):
proc i64* (v: float): int64 {.inline, noStackFrame.} =
{.emit:
""" return *((long*) &v); """ .}
echo i64(3.14) # works
echo cast[int64](3.14) # echo 3
why cast does not work here ?