• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

Equivalent of java Double.toLongBits(x)

New Here ,
Mar 22, 2017 Mar 22, 2017

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

Views

906

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Apr 04, 2017 Apr 04, 2017

Copy link to clipboard

Copied

LATEST

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!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines