Jon Bradley wrote:
On Mar 8, 2006, at 12:13 AM, JesterXL wrote:
Something about how certain numbers are only so big in
Flash Player, and there was talk of porting BigInt from Java.
Far as I know, number accuracy in Flash is +/- 1e16 and no better. I
believe that's 32-bit precision.
On Mar 8, 2006, at 10:10 AM, Ron Wheeler wrote:
You could also implement a decimalNumber Class that does its
arithmetic in decimal.
You need to carry guard digits through calculations to ensure that
rounding is done properly.
You can make the numbers as large as you want with whatever precision
you want.
Not in Flash. Flash is limited in it's numeric accuracy, either with
decimal or integers.
Of course you can. Flash is not limited in any practical sense in the
amount of data that a Class can carry or the complexity of the methods
that you can write.
That was one of the winning technology bits that IBM had in the 1960s
and on. Their mainframe processors (1400,360,370 series) actually
supported decimal number format with arithmetic operations that made
financial applications easier to deal with and made the COBOL decimal
structures work well. This is one of the ways that they dominated the
financial world.
Back in the 60s maybe. There wasn't anything else at the time that
could do it.
I am not sure if anyone else has this even today. IBM still has a pretty
big chunk of the mainframe and enterprise server market. They pretty
much destroyed their competition with that line of products.
Now, it's not really an issue as numeric accuracy is fairly easy to
deal with and there are many different ways to do it in a variety of
languages. Flash just isn't suited for it.
- Jon
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com