1

I have a problem in converting the decimal to binary values in javascript,After converting the decimal to binary i amm not getting the accurate value please help me solve this issue for example if i convert 72057598599935719 to binary i am getting 100000000000000000000000100001111111010101011011011100000, and after converting the same binary to decimal value i am getting 72057598599935710, please give some suggestion to solve this issue.Here the code i used to convert

var dec = this.get('number'),   
    bin = parseInt(dec,10).toString(2)
Barmar
  • 741,623
  • 53
  • 500
  • 612
Srikanth K
  • 11
  • 2

0 Answers0