Your Universal Remote Control Center
RemoteCentral.com
Philips Pronto Professional Forum - View Post
Up level
Up level
The following page was printed from RemoteCentral.com:

Login:
Pass:
 
 

Original thread:
Post 23 made on Sunday October 10, 2010 at 19:03
Lyndel McGee
RC Moderator
Joined:
Posts:
August 2001
13,007
I know it has been a while but I was going through some of my source code and found where I'd changed this up a bit.

Here is way to do this with least amount of code - Use String.slice() with negative parameter value.

function zeroFill3(value){
return String('000' + value).slice(-3);
}
Lyndel McGee
Philips Pronto Addict/Beta Tester


Hosting Services by ipHouse