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

Can not convert 17 digit Number to String

Guest
Sep 27, 2011 Sep 27, 2011

Copy link to clipboard

Copied

I am facing issue in Number to String Conversion. I am using flex 4.5 SDK

I have 17 digit numbers and when i try to convert in to string then it is not giving me proper result.

Var myNumber :Number = 64336512942563914;

Var myString:String  = myNumber.toString();

trace(“myString ”+myString);

trace(“myNumber ”+myNumber);

//out put :

myString 64336512942563910

myNumber 64336512942563910


Its automatically converts 17th digit to “0” value

I have also tried type conversion(Srting(myNumber)) but no Luck same problem ,

Also tried directly displaying number in the trace()  function same problem I am getting 

Is this issue in the Flex Sting Class?

TOPICS
Flex SDK

Views

1.4K

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
Guest
Nov 16, 2011 Nov 16, 2011

Copy link to clipboard

Copied

LATEST

Hi Sanjay !

I'm facing this problem as well and would like to know is you finally fixed it and how ?

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