# To divide large numbers

**URL:** <https://forum.kirupa.com/t/to-divide-large-numbers/332350>\
**Category:** Uncategorized\
**Created:** [May 6, 2014, 2:56am UTC](https://forum.kirupa.com/t/to-divide-large-numbers/332350 "2014-05-06T02:56:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ancerick](https://avatars.discourse-cdn.com/v4/letter/a/3be4f8/32.png) [@ancerick](https://forum.kirupa.com/u/ancerick)\
**Post date:** [May 6, 2014, 2:56am UTC](https://forum.kirupa.com/t/to-divide-large-numbers/332350/1 "2014-05-06T02:56:10Z")

</div>

hy im trying to divide large floating point values like 10 in the level of -18. but flash rounds em numbers up and i get results in e-level and i also suspect mistakes to have been made … any sure way to do this? i also think the int(); already produces some data loss but perhaps im just paranoid. anyway here is my faulty code:

//-----------------------------------------  
btn\_c.onRelease = function () {  
s\_temp = Number(s\_text.text);  
s\_var = 0.000000000000001 \* s\_temp  
e\_var = int(e\_text.text)  
d\_var = int(d\_text.text)  
trace(d\_var)  
e0\_var = 0.8 //this will hopefully be also alot of floats XD  
c\_var = (e0\_var \* e\_var \* s\_var)/d\_var  
c\_text.text = c\_var //the field to print the output  
}
