ActionScript 3 parser and generator uses decimal.

Instructions with numbecontext parameters have translate method - use standard GraphTarget items.
This commit is contained in:
Jindra Petřík
2024-08-10 16:41:27 +02:00
parent 08c3c5a469
commit 4e36416729
26 changed files with 2442 additions and 2291 deletions

View File

@@ -9,9 +9,19 @@ package mypkg
{
//Presision values: HALF_EVEN, DOWN, FLOOR, UP, CEILING, HALF_UP, HALF_DOWN
//use precision 10, rounding FLOOR;
use decimal, precision 20, rounding FLOOR;
var a:decimal = 10000000010000000002000000000300000000040000000005m;
var a:decimal = 10000000010000000002000000000300000000040000000005m;
var b:int = 10;
var c:*;
c = a + b;
c = a - b;
c = a / b;
c = a % b;
c = a * b;
++c;
--c;
c = -a;
}
private function testd(arg_d:decimal) {