Skip to main content
Participant
March 22, 2017
Question

Equivalent of java Double.toLongBits(x)

  • March 22, 2017
  • 1 reply
  • 969 views

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

This topic has been closed for replies.

1 reply

jeromiec83223024
Inspiring
April 4, 2017

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!