# Fixed decimals

**URL:** <https://forum.kirupa.com/t/fixed-decimals/43375>\
**Category:** flash\
**Created:** [February 21, 2004, 4:37pm UTC](https://forum.kirupa.com/t/fixed-decimals/43375 "2004-02-21T16:37:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hommer](https://avatars.discourse-cdn.com/v4/letter/h/a3d4f5/32.png) [@Hommer](https://forum.kirupa.com/u/Hommer)\
**Post date:** [February 21, 2004, 4:37pm UTC](https://forum.kirupa.com/t/fixed-decimals/43375/1 "2004-02-21T16:37:21Z")

</div>

Arh! I’ve forgotten how to make decimal variables fixed.  
I’m making a small game with a timer that have to show the time in seconds with 2 decimals all the time (i.e. 34.71 sec. or 51.00 sec.)  
How do I force the time-variable to always have two decimals?
