# One minute countdown w/o decimals

**URL:** https://forum.kirupa.com/t/one-minute-countdown-w-o-decimals/244764
**Category:** Uncategorized
**Created:** [November 21, 2007, 3:45pm UTC](https://forum.kirupa.com/t/one-minute-countdown-w-o-decimals/244764 "2007-11-21T15:45:51Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![kylberg](https://avatars.discourse-cdn.com/v4/letter/k/8491ac/32.png) [@kylberg](https://forum.kirupa.com/u/kylberg)
#### Post date: [November 21, 2007, 3:45pm UTC](https://forum.kirupa.com/t/one-minute-countdown-w-o-decimals/244764/1 "2007-11-21T15:45:51Z")

</div>

i want a countdown timer that goes from 60 to 0, im using this code now. but i get a bunch of decimals too, how do i remove them? is there any better code i can use?  
also when the timer reaches 0 i want to jump to another frame i’ve been experimenting a bit but i cant get it to work…

```php
 
var countTotal = 60;

_root.onEnterFrame=function() {
now = getTimer()/1000;
_root.timeLeft.text = countTotal - now;
}

```
