Flasher Archive

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


Subject: Re: FLASH: Formatting Numbers, decimals
From: Helen Triolo
Date: Wed, 12 Jul 2000 16:55:34 +0100

jwoodw - Jeffrey Woodward wrote:
>
> I guess the only problem left with this issue is to take care of numbers
> that happen to come out as decimals, i.e. - .54321 - Would you use some more
> "If" statements to handle this scenerio?

If the number might be a decimal (of unknown precision), I'd add another
loop to scan the string from right to left until the decimal is found,
and note where it appears (set a variable). Then modify the existing
code to not put out any commas before the decimal is reached (and modify
the line that checks for multiples of 3 to take into account the extra
stuff to the right of the decimal). That's what I'd do but maybe
there's an easier way -- if you come up with a good routine, post the
code!

---------------------------------------------------
helen triolo � http://i-technica.com � 301-424-6037
Flash Q&A archive � http://i-technica.com/flashlist

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
  RE: FLASH: Formatting Numbers, decimals, Branden Hall

Replies
  RE: FLASH: Formatting Numbers, jwoodw - Jeffrey Woodward

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