# Math: significant digits

**URL:** <https://forum.kirupa.com/t/math-significant-digits/233506>\
**Category:** flash\
**Created:** [July 24, 2007, 4:13pm UTC](https://forum.kirupa.com/t/math-significant-digits/233506 "2007-07-24T16:13:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![myoreo](https://avatars.discourse-cdn.com/v4/letter/m/7feea3/32.png) [@myoreo](https://forum.kirupa.com/u/myoreo)\
**Post date:** [July 24, 2007, 4:13pm UTC](https://forum.kirupa.com/t/math-significant-digits/233506/1 "2007-07-24T16:13:46Z")

</div>

hey folks, I am trying to get the two significant digits of a value. Anyone know how to do this?  
for example, 23900 =\>24000

I was trying to write it out as  
Math.round(Math.log(Math.abs(value))/Math.LOG10E);

I don’t think it’s right.
