# Handling large numbers

**URL:** <https://forum.kirupa.com/t/handling-large-numbers/305054>\
**Category:** Uncategorized\
**Created:** [February 18, 2010, 2:27pm UTC](https://forum.kirupa.com/t/handling-large-numbers/305054 "2010-02-18T14:27:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kevin123](https://avatars.discourse-cdn.com/v4/letter/k/b77776/32.png) [@Kevin123](https://forum.kirupa.com/u/Kevin123)\
**Post date:** [February 18, 2010, 2:27pm UTC](https://forum.kirupa.com/t/handling-large-numbers/305054/1 "2010-02-18T14:27:58Z")

</div>

Hi all,  
I am trying to convert a string having numbers to an integer.

//15 9’s are there  
var [SIZE=2]str:String=“999999999999999”  
[/SIZE]**[SIZE=2][COLOR=#6699cc][SIZE=2][COLOR=#6699cc]var**[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] res:Number = [/SIZE]**[SIZE=2][COLOR=#0033ff][SIZE=2][COLOR=#0033ff]new**[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] Number(str);[/SIZE]  
[SIZE=2][/SIZE]  
[SIZE=2]But it is not able to convert correctly as the the var res now has the value 100000000000000000.[/SIZE]  
[SIZE=2][/SIZE]  
[SIZE=2]I know that the number has 52 bits of memory, then why is it not able to do the conversion?[/SIZE]  
[SIZE=2][/SIZE]  
[SIZE=2]Any help would be highly appreciated… :)[/SIZE]  
[SIZE=2]TIA…  
[/SIZE]
