A Flash Developer Resource Site

Search:

Type: Posts; User: n_atall

Search: Search took 0.02 seconds.

  1. Replies
    0
    Views
    375

    Flash 5 seems to be chopping off my zeroes even...

    Flash 5 seems to be chopping off my zeroes even though they're to the left of the decimal.

    ie. 1200 becomes 12.

    I'm sending the original numerical values through
    myNumber.toString();
    in a...
  2. Replies
    0
    Views
    358

    Flash 5 seems to be ignoring all of the zeroes on...

    Flash 5 seems to be ignoring all of the zeroes on the right side of numbers.

    ie. 100 becomes 1

    Is there a way to force it to print the variable to n digits?

    I change the number to a string...
  3. Thread: 4 -> 04

    by n_atall
    Replies
    0
    Views
    338

    I've seen it before, but I can't seem to find the...

    I've seen it before, but I can't seem to find the function/tutorial.
    What I need is to force a number into taking up x digits.

    ie.

    4 -> 04

    35 -> 0035

    123 -> 0000123
  4. Replies
    1
    Views
    649

    I was wondering if there is a truncate function...

    I was wondering if there is a truncate function in Flash 5, if not a function that rounds to x decimal places.
    ie:

    Input -> Round(3.14159265,4)
    Output -> 3.1416

    or

    Input ->...
Results 1 to 4 of 4




Click Here to Expand Forum to Full Width

HTML5 Development Center