Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
| Subject: | Re: [flasher] Can you set "floatprecision" in Flash? |
| From: | John Dowdell |
| Date: | Thu, 15 Mar 2001 21:26:00 -0000 |
At 4:36 AM 3/15/1, Tony McLawhorn wrote:
> How do you go about setting the "floatprecision" (as in Director)
> in Flash?
I gave a quick scan to the ECMAScript specification and didn't see such an
ability there either, sorry.
> Trying to do a calculator...
Two big issues come to mind: "How can I format numbers as desired?" and
"How accurate are floating-point numbers in a computer?"
For formatting, handling a number as a string is useful. Watch out for
testing equality on floats, though, because there's usually a bit of
rounding... integers are more accurate for computers to represent.
(Technote #13112 has the story on this, even though it's about Lingo rather
than ActionScript.)
jd
John Dowdell, Macromedia Tech Support, San Francisco CA US
Search technotes: http://www.macromedia.com/support/search/
Offlist email risks capture by the spam filters. I may not see your
email if it's not on the list. Private one-on-one email options are
available via Priority Access: http://www.macromedia.com/support/
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]

