Iterate through all possible floating-point values
Posted
by Vulcan Eager
on Stack Overflow
See other posts from Stack Overflow
or by Vulcan Eager
Published on 2010-04-21T09:05:23Z
Indexed on
2010/04/21
9:23 UTC
Read the original article
Hit count: 285
floating-point
|bit-manipulation
How can I list all possible values of a floating-point data type? I can do this using a union in C or C++ but will that be portable?
How can this be done in other languages? Javascript?
Let's just assume I am using this iteration to map theta
to sin(theta)
.
© Stack Overflow or respective owner