-
Is there a built-in way to cast a #include <cstdint>
#include <cfloat>
extern "C" {
double asDouble(int32_t x) {
return (double)x;
}
} Is there another way? |
Beta Was this translation helpful? Give feedback.
Answered by
b-scholz
Oct 18, 2021
Replies: 1 comment 1 reply
-
Have you tried to_float(x)? |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
balhoff
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Have you tried to_float(x)?