Copy link to clipboard
Copied
Hi,
I need the equivalent of java Double.toLongBits(x), I know Number has the same implementation of Java/.net IEEE-754, there are some implementations on web, but I'm sure there must be something internal on Number to do this.. no? like a Number.toString() but for the 64 bit representation of the number?
Do I have to write the number to a buffer and read it again? how do I do this?
Thank you
Copy link to clipboard
Copied
I've been thinking about this for a while, but I can't think of a way to do this natively in ActionScript.
I think you'd ultimately need to borrow/roll your own implementation. C/C++ and Crossbridge seem like a viable path.
GitHub - adobe-flash/crossbridge: Welcome to visit the homepage!