# How to display only four decimal places with actionscript 3.0

**URL:** <https://forum.kirupa.com/t/how-to-display-only-four-decimal-places-with-actionscript-3-0/304850>\
**Category:** flash\
**Created:** [February 15, 2010, 2:25pm UTC](https://forum.kirupa.com/t/how-to-display-only-four-decimal-places-with-actionscript-3-0/304850 "2010-02-15T14:25:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fs\_tigre](https://avatars.discourse-cdn.com/v4/letter/f/edb3f5/32.png) [@fs\_tigre](https://forum.kirupa.com/u/fs_tigre)\
**Post date:** [February 15, 2010, 2:25pm UTC](https://forum.kirupa.com/t/how-to-display-only-four-decimal-places-with-actionscript-3-0/304850/1 "2010-02-15T14:25:13Z")

</div>

Hi,  
How can I tell flash to use only four decimal places when a number is display in a textField?  
Something like this:

> 2.2356 , 0.2538, 0.2968, 0.0001 etc.

Instead of infinite numbers:

> 2.23565985… , 0.2538486…

Thanks a lot.
