Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: Re: FLASH: Formatting Numbers
From: frank pichel
Date: Thu, 6 Jul 2000 16:04:21 +0100

I can only think of a convoluted, weird way:

Make a substring variable for each set of 3 numbers. (called 'millions',
etc.) And then write an if statement which checks for how many number places
there are - if the number can be any length.

Set Variable: "hundreds" = Substring (startnumber, 0, 3 )
...
If ("startnumber" < 1000)
...
Set Variable: "comma" = " ,"
Set Variable: "bignumber" = (millions) & (comma) & (thousands) & (comma) &
(hundreds)

Is that any help?

frank pichel



> Hi all,
>
> I feel certain that there is a way to format large numbers in a variable
> text field with commas using ActionScript, but I can't seem to get my head
> around it.
>
> For example, I need the number 1000000 to read 1,000,000.
>
> Can anyone help?
>
> Thanks in advance!
> Jeff



flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and the Flash(tm) Film Festival
July 24-26, 2000, NEW YORK CITY, Hammerstein Ballroom
www.flashforward2000.com
Produced by United Digital Artists and lynda.com
Sponsored by Macromedia, Adobe Systems, Fusion, Inc, AtomFilms,
shockwave.com and Electric Rain.
1.877.4.FLASH.4 or (1.805.640.6679 outside the US and Canada)
Register before June 30 and save $200!!-- www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  FLASH: Formatting Numbers, jwoodw - Jeffrey Woodward

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]