|
-
getTimer() with one decimal place
//as per usual I figured it out a minute after posting this thread\\
//
//method...
//
//
PHP Code:
textField = Math.round(getTimer()/100)/10;
//
//thanks anyhow (although I must admit the effect is rather jumpy\\
Howdy
PHP Code:
textField = getTimer();
gives milliseconds, which is too busy for what I want, whereas
PHP Code:
textField = Math.round(getTimer()/1000);
gives only the integer, I would prefer it if i could see the 10ths of seconds as well, like.....
PHP Code:
textField = Math.round(getTimer()/100);
....but that leaves out the decimal point.
I could just draw in the decimal point, but that's rather sloppy, to say the least.
Does anyone have a cunning plan how I can get around this one?
Last edited by skalie; 11-25-2003 at 08:00 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|