Flasher Archive

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


Subject: Re: FLASH: Formatting Numbers #2
From: Randy Kato
Date: Thu, 6 Jul 2000 18:48:45 +0100

Helen & Jeffrey,

I think it's somewhere in between the first and second post. When
concatenating you don't want to multiply m by 1000000 or t by 1000 or
you'll get something like 3000000,256000,123 instead of 3,256,123 (but the
final part of the concatenation where you're getting the hundreds seems
correct).

May need to add some if statement(s) that would take into account a number
like 1,001,001 so it would fill in the leading zeros in the hundreds and
thousands fields. Something like IF t < 100, t = "0" & t.

Again, haven't actually tried it, but this might get you going in the right
direction.

HTH,
Randy


Helen Triolo wrote:

> Oops, I left out some multipliers. That would be:
>
> m = int(x/1000000) m is the millions
> t = int((x - m*1000000)/1000) t is the thousands
> m*1000000 & "," & t*1000 & "," & x-(m*1000000)-t*1000
>
> and you don't really need m and t as separate variables -- they're just
> so you can see what's happening. Lump it all into one statement if you
> want.

--
'''''' ' ' ' ' ' ' ' ' '
Randy Kato - Web Master
Braincraft

627 Broadway, Suite 504, NYC 10012
T 212.539.1680 F 212.539.1741
http://www.braincraft.com
...... . . . . . . . . .



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 #2, Helen Triolo

Replies
  FLASH: Formatting Numbers, jwoodw - Jeffrey Woodward
  Re: FLASH: Formatting Numbers #2, Helen Triolo

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