Iterate through all possible floating-point values
- by Vulcan Eager
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).