My question is similar to this question which deals with positive floating point values.
In my case, I'm dealing with both positive and negative float
values, and want to store it in an int64_t
type.
NOTE: I wish to use memcpy
rather than relying on a union (which is UB in C++).