# Setting numbers before the decimal point to 0

**URL:** <https://forum.kirupa.com/t/setting-numbers-before-the-decimal-point-to-0/245695>\
**Category:** flash\
**Created:** [December 3, 2007, 4:20am UTC](https://forum.kirupa.com/t/setting-numbers-before-the-decimal-point-to-0/245695 "2007-12-03T04:20:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon4341189](https://avatars.discourse-cdn.com/v4/letter/a/ecae2f/32.png) [@anon4341189](https://forum.kirupa.com/u/anon4341189)\
**Post date:** [December 3, 2007, 4:20am UTC](https://forum.kirupa.com/t/setting-numbers-before-the-decimal-point-to-0/245695/1 "2007-12-03T04:20:35Z")

</div>

Hello all,

I am wonder how one could set the numbers before the decimal point to 0.

For example, if i have 23842348.000389384, then i would get 0.000389384.  
As another example, if i have 15264.985653, then i would get 0.985653.

I have tried converting the number to a string, splitting it into an array by the decimal point.  
But in that case, if the decimal has got zeroes in front, they get truncated.

Any ideas appreciated 😃

cheers!
