mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-04 15:14:49 +00:00
Using NumberContext parameter in operations.
Compiling use clause with usage, rounding, precision
This commit is contained in:
BIN
libsrc/ffdec_lib/testdata/decimal/bin/decimal.abc
vendored
BIN
libsrc/ffdec_lib/testdata/decimal/bin/decimal.abc
vendored
Binary file not shown.
@@ -1,11 +1,14 @@
|
||||
const int decimal_abc_length = 908;
|
||||
const int decimal_abc_length = 972;
|
||||
const int decimal_abc_method_count = 0;
|
||||
const int decimal_abc_class_count = 6;
|
||||
const int decimal_abc_script_count = 2;
|
||||
const unsigned char decimal_abc_data[908] = {
|
||||
const unsigned char decimal_abc_data[972] = {
|
||||
0x11, 0x00, 0x2e, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf8, 0x7f, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x7f, 0x02, 0x26, 0x0c, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
||||
0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x16, 0x06, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x7f, 0x05, 0x26, 0x0c, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
||||
0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x22, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x22, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x22, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x16, 0x06, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74,
|
||||
0x00, 0x06, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x03, 0x69, 0x6e, 0x74, 0x07, 0x64, 0x65, 0x63,
|
||||
0x69, 0x6d, 0x61, 0x6c, 0x12, 0x5f, 0x5f, 0x41, 0x53, 0x33, 0x5f, 0x5f, 0x2e, 0x76, 0x65, 0x63,
|
||||
0x3a, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x0b, 0x5f, 0x5f, 0x41, 0x53, 0x33, 0x5f, 0x5f, 0x2e,
|
||||
@@ -52,11 +55,12 @@ const unsigned char decimal_abc_data[908] = {
|
||||
0x24, 0x00, 0xa3, 0x68, 0x0c, 0x5d, 0x0d, 0x24, 0x01, 0x24, 0x00, 0xa3, 0x68, 0x0e, 0x5d, 0x0f,
|
||||
0x21, 0x68, 0x10, 0x47, 0x00, 0x00, 0x0b, 0x01, 0x01, 0x03, 0x04, 0x03, 0xd0, 0x30, 0x47, 0x00,
|
||||
0x00, 0x0c, 0x02, 0x05, 0x04, 0x05, 0x4f, 0xd0, 0x30, 0x21, 0x82, 0x63, 0x04, 0x33, 0x01, 0x80,
|
||||
0x04, 0xd6, 0x24, 0x0a, 0x73, 0xd7, 0xd2, 0xd3, 0xb5, 0x98, 0x05, 0x82, 0x63, 0x04, 0xd2, 0xd3,
|
||||
0xb6, 0x98, 0x05, 0x82, 0x63, 0x04, 0xd2, 0xd3, 0xb8, 0x98, 0x05, 0x82, 0x63, 0x04, 0xd2, 0xd3,
|
||||
0xb9, 0x98, 0x05, 0x82, 0x63, 0x04, 0xd2, 0xd3, 0xb7, 0x98, 0x05, 0x82, 0x63, 0x04, 0x62, 0x04,
|
||||
0x9c, 0x98, 0x05, 0x82, 0x63, 0x04, 0x62, 0x04, 0x9e, 0x98, 0x05, 0x82, 0x63, 0x04, 0xd2, 0x8f,
|
||||
0x98, 0x05, 0x82, 0x63, 0x04, 0x47, 0x00, 0x00, 0x0d, 0x01, 0x02, 0x04, 0x05, 0x03, 0xd0, 0x30,
|
||||
0x04, 0xd6, 0x33, 0x02, 0x73, 0xd7, 0xd2, 0xd3, 0xb5, 0x81, 0x05, 0x82, 0x63, 0x04, 0xd2, 0xd3,
|
||||
0xb6, 0x81, 0x05, 0x82, 0x63, 0x04, 0xd2, 0xd3, 0xb8, 0x81, 0x05, 0x82, 0x63, 0x04, 0xd2, 0xd3,
|
||||
0xb9, 0x81, 0x05, 0x82, 0x63, 0x04, 0xd2, 0xd3, 0xb7, 0x81, 0x05, 0x82, 0x63, 0x04, 0x62, 0x04,
|
||||
0x9c, 0x81, 0x05, 0x82, 0x63, 0x04, 0x62, 0x04, 0x9e, 0x81, 0x05, 0x82, 0x63, 0x04, 0xd2, 0x8f,
|
||||
0x81, 0x05, 0x82, 0x63, 0x04, 0x47, 0x00, 0x00, 0x0d, 0x02, 0x05, 0x04, 0x05, 0x13, 0xd0, 0x30,
|
||||
0x33, 0x03, 0x82, 0xd6, 0x33, 0x04, 0x82, 0xd7, 0xd2, 0xd3, 0xb5, 0x81, 0x05, 0x82, 0x63, 0x04,
|
||||
0x47, 0x00, 0x00, 0x0e, 0x01, 0x01, 0x04, 0x05, 0x06, 0xd0, 0x30, 0xd0, 0x49, 0x00, 0x47, 0x00,
|
||||
0x00, 0x0f, 0x02, 0x01, 0x01, 0x03, 0x13, 0xd0, 0x30, 0x65, 0x00, 0x5d, 0x01, 0x66, 0x01, 0x30,
|
||||
0x5d, 0x01, 0x66, 0x01, 0x58, 0x05, 0x1d, 0x68, 0x17, 0x47, 0x00, 0x00 };
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
package mypkg
|
||||
{
|
||||
use decimal, rounding CEILING, precision 10;
|
||||
|
||||
public class MyClass
|
||||
{
|
||||
private var attr_dec:decimal;
|
||||
@@ -7,11 +9,7 @@ package mypkg
|
||||
|
||||
public function test(arg_d:decimal): void
|
||||
{
|
||||
//Presision values: HALF_EVEN, DOWN, FLOOR, UP, CEILING, HALF_UP, HALF_DOWN
|
||||
|
||||
//use decimal, precision 20, rounding FLOOR;
|
||||
|
||||
use Number, precision 10;
|
||||
//Presision values: HALF_EVEN, DOWN, FLOOR, UP, CEILING, HALF_UP, HALF_DOWN
|
||||
|
||||
var a:decimal = 10000000010000000002000000000300000000040000000005m;
|
||||
var b:int = 10;
|
||||
@@ -27,6 +25,9 @@ package mypkg
|
||||
}
|
||||
|
||||
private function testd(arg_d:decimal) {
|
||||
var a:* = 1;
|
||||
var b:* = 2;
|
||||
var c = a + b;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user