A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: [RESOLVED] How to add zeros to beginning of a number?

Threaded View

  1. #1
    Junior Member
    Join Date
    Dec 2011
    Posts
    7

    resolved [RESOLVED] How to add zeros to beginning of a number?

    Sorry, the title maybe misleading but;
    All I wanted to know is, how to make string represents of numbers that have specific amount of digits.

    For examle:
    1 = 0001
    34 = 0034
    1024 = 1204

    Is there any function or easy way to achieve this?
    Last edited by xxakkusxx; 02-27-2012 at 03:55 PM. Reason: Bad english use + Title change

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center