mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-24 05:26:08 +00:00
29 lines
760 B
ActionScript
29 lines
760 B
ActionScript
package mypkg
|
|
{
|
|
use decimal, rounding CEILING, precision 10;
|
|
|
|
public class MyClass/*!*/
|
|
{
|
|
private var attr_dec:decimal;
|
|
private var attr_int:int;
|
|
|
|
public function test(arg_d:decimal): void
|
|
{
|
|
//Presision values: HALF_EVEN, DOWN, FLOOR, UP, CEILING, HALF_UP, HALF_DOWN
|
|
|
|
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;
|
|
}
|
|
}
|
|
|
|
}
|