On Thursday, 5 March 2015 at 20:03:09 UTC, Benjamin Thaut wrote:
Am 05.03.2015 um 21:00 schrieb Taylor Hillegeist:
How to I cast a Int to float without changing its binary representation?

int someValue = 5;
float sameBinary = *(cast(float*)cast(void*)&someValue);

ahh of course! lol :)

Reply via email to