hello,
Is it possible to have an equivalent to the command "sprintf" in to enable javascript?
Example : 1 -> 01
Order perle : sprintf ("% 02s", $ number)
Thank you
Translation
bonjour,
Est-il possible d'avoir un équivalent à la commande "sprintf" en per vers javascript?
exemple : 1 -> 01
la commande perlesprintf("%02s",$nombre)
Merci
No.
There is no such equivalent. You have to roll your own.
Try googling, or look at http://stackoverflow.com/questions/2998784/how-to-output-integers-with-leading-zeros-in-ja vascript for some examples.
(p.s. very misleading Subject line!)
Thank you