| /arkcompiler/ets_runtime/ecmascript/base/ |
| D | dtoa_helper.cpp | 78 return 1; // 1: means the decimal digit in CountDecimalDigit32() 80 return 2; // 2: means the decimal digit in CountDecimalDigit32() 82 return 3; // 3: means the decimal digit in CountDecimalDigit32() 84 return 4; // 4: means the decimal digit in CountDecimalDigit32() 86 return 5; // 5: means the decimal digit in CountDecimalDigit32() 88 return 6; // 6: means the decimal digit in CountDecimalDigit32() 90 return 7; // 7: means the decimal digit in CountDecimalDigit32() 92 return 8; // 8: means the decimal digit in CountDecimalDigit32() 94 return 9; // 9: means the decimal digit in CountDecimalDigit32() 110 case 9: // 9: means the decimal digit in DigitGen() [all …]
|
| D | number_helper.cpp | 79 return c - 'A' + DECIMAL; in ToDigit() 82 return c - 'a' + DECIMAL; in ToDigit() 561 if ((radix == base::DECIMAL || radix == 0)) { in StringToNumber() 609 radix = DECIMAL; in StringToDoubleWithRadix() 663 int digit = static_cast<int>((current > '9') ? (current - 'a' + DECIMAL) : (current - '0')); in Carry() 723 int n; // decimal point in DoubleToEcmaString() 849 num = 10 * num + (*(start + i) - '0'); // 10 : 10 represents the base of the decimal system in StringToInt() 965 radix = DECIMAL; in StringToDouble() 1004 // 7. deal with other radix except DECIMAL in StringToDouble() 1005 if (p == end || radix != DECIMAL) { in StringToDouble() [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/runtime/intrinsics/helpers/ |
| D | dtoa_helper.cpp | 112 case MAX_DIGITS: // 9: number of decimal digits in PopDigit() 116 case 8: // 8: number of decimal digits in PopDigit() 120 case 7: // 7: number of decimal digits in PopDigit() 124 case 6: // 6: number of decimal digits in PopDigit() 128 case 5: // 5: number of decimal digits in PopDigit() 132 case 4: // 4: number of decimal digits in PopDigit() 136 case 3: // 3: number of decimal digits in PopDigit() 140 case 2: // 2: number of decimal digits in PopDigit() 144 case 1: // 1: number of decimal digits in PopDigit()
|
| D | ets_intrinsics_helpers.cpp | 169 radix = DECIMAL; in StringToDouble() 208 // 7. deal with other radix except DECIMAL in StringToDouble() 209 if (p == end || radix != DECIMAL) { in StringToDouble() 235 if (radix == DECIMAL && (p != end && (*p == 'e' || *p == 'E'))) { in StringToDouble() 291 radix = DECIMAL; in StringToDoubleWithRadix() 577 … // 6. If k ≤ n ≤ 21, return the String consisting of the code units of the k digits of the decimal in FpToStringDecimalRadixMainCase() 584 …// decimal representation of s, followed by the code unit 0x002E (FULL STOP), followed by the code… in FpToStringDecimalRadixMainCase() 585 // the remaining k−n digits of the decimal representation of s. in FpToStringDecimalRadixMainCase() 596 // code units of the k digits of the decimal representation of s. in FpToStringDecimalRadixMainCase() 615 // the decimal representation of the integer abs(n−1) (with no leading zeroes). in FpToStringDecimalRadixMainCase()
|
| D | ets_intrinsics_helpers.h | 40 inline constexpr uint8_t DECIMAL = 10; variable 98 return c - 'A' + DECIMAL; in ToDigit() 101 return c - 'a' + DECIMAL; in ToDigit() 225 int digit = static_cast<int>((current > '9') ? (current - 'a' + DECIMAL) : (current - '0')); in Carry() 385 if (radix == helpers::DECIMAL) { in FpToString()
|
| /arkcompiler/ets_frontend/es2panda/test/parser/js/language/arguments-object/ |
| D | test-class-func-named-decimal-expected.txt | 1 SyntaxError: Unexpected token [test-class-func-named-decimal.js:21:4]
|
| D | test-func-named-decimal-expected.txt | 1 …: Unexpected token, expected identifier after 'function' keyword [test-func-named-decimal.js:17:10]
|
| /arkcompiler/ets_frontend/es2panda/test/compiler/js/language/arguments-object/ |
| D | test-key-named-bound-value-expected.txt | 3 decimal
|
| D | test-key-named-bound-value.js | 18 1000 : 'decimal',
|
| /arkcompiler/ets_runtime/ecmascript/tests/ |
| D | js_number_format_test.cpp | 127 …* decimal,construct a bigint type data,and the object calls the FormatNumeric method to … 128 …* type data into the corresponding decimal, and check whether the decimal meets the expe… 144 JSHandle<JSTaggedValue> styleValue(factory->NewFromASCII("decimal")); in HWTEST_F_L0()
|
| /arkcompiler/ets_runtime/ecmascript/mem/ |
| D | c_string.h | 86 buf[--position] = static_cast<int8_t>('0' - (n % 10)); // 10 : decimal in ToCString() 87 n /= 10; // 10 : decimal in ToCString()
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/02.lexical_elements/09.literals/03.bigint_literals/ |
| D | bigint_literals.sts | 19 BigInt literals use decimal base only. It is a sequence of digits which ends with symbol 'n'.
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/02.lexical_elements/09.literals/01.integer_literals/ |
| D | int_literals.params.yaml | 16 - '0' # decimal literals without signs and delimiters
|
| /arkcompiler/ets_runtime/ecmascript/ |
| D | js_bigint.h | 41 static constexpr uint32_t DECIMAL = 10; // 10 : decimal variable 60 uint32_t conversionToRadix = BigInt::DECIMAL); 202 uint32_t currentRadix = BigInt::DECIMAL);
|
| D | date_parse.h | 228 // 6: 6 decimal digit in IsSixDecimalDigit() 234 // 4: 4 decimal digit in IsFourDecimalDigit() 240 // 2: 2 decimal digit in IsTwoDecimalDigit()
|
| /arkcompiler/runtime_core/static_core/plugins/ets/stdlib/std/core/ |
| D | Char.sts | 337 * isDecDigit() checks whether the char represents a decimal digit. 341 * @returns true if the char is a decimal digit. 349 * isDecDigit() checks whether the underlying char represents a decimal digit. 351 * @returns true if the char is a decimal digit.
|
| /arkcompiler/runtime_core/static_core/plugins/ets/runtime/intrinsics/ |
| D | std_core_Float.cpp | 25 if (UNLIKELY(radix != helpers::DECIMAL)) { in StdCoreFloatToString()
|
| /arkcompiler/runtime_core/static_core/plugins/ets/doc/spec/ |
| D | 2_lexical.rst | 426 Integer literals represent numbers that do not have a decimal point or 428 (hexadecimal), 10 (decimal), 8 (octal), and 2 (binary) as follows: 434 decimal 476 153 // decimal literal 477 1_153 // decimal literal 527 *Floating-point literals* represent decimal numbers and consist of a 528 whole-number part, a decimal point, a fraction part, an exponent, and 597 ``BigInt`` literals use decimal base only.
|
| /arkcompiler/runtime_core/static_core/plugins/ets/snippet_verifier/ |
| D | README.md | 97 153 // decimal literal 98 1_153 // decimal literal
|
| /arkcompiler/runtime_core/static_core/plugins/ets/doc/tutorial/ |
| D | basics.rst | 103 with the decimal base. 107 * Decimal integers that consist of a sequence of digits. For example: 119 * Decimal integer, optionally signed (i.e., prefixed with "+" or "-"); 120 * Decimal point ("."); 121 * Fractional part (represented by a string of decimal digits);
|
| /arkcompiler/ets_runtime/test/aottest/builtin_inlining/bigint/AsUintN/ |
| D | builtinBigIntAsUintN.ts | 143 …ntaxError: Cannot convert string to a BigInt,because not allow Infinity, decimal points, or expone… 157 …ntaxError: Cannot convert string to a BigInt,because not allow Infinity, decimal points, or expone…
|
| /arkcompiler/ets_runtime/ecmascript/builtins/ |
| D | builtins_bigint.cpp | 174 double radix = base::DECIMAL; in ToString() 188 if (radix == base::DECIMAL) { in ToString()
|
| /arkcompiler/ets_frontend/es2panda/lexer/regexp/ |
| D | regexp.cpp | 527 ThrowError("Invalid decimal escape"); in ParseDecimalEscape() 539 ThrowError("Invalid decimal escape"); in ParseDecimalEscape() 550 ThrowError("Invalid decimal escape"); in ParseDecimalEscape()
|
| /arkcompiler/ets_frontend/es2panda/util/ |
| D | helpers.cpp | 235 // 1. integerSignificand is an integer in the Decimal representation of Scientific notation. in DoubleToString() 236 …// 2. integerSignificandBitCount is the number of bits in the Decimal representation of significan… in DoubleToString() 237 // 3. numberBitCount is the number of bits in the Decimal representation of number. in DoubleToString() 259 … // If integerSignificandBitCount ≤ numberBitCount ≤ 21, return the string represented by Decimal, in DoubleToString() 263 … // If 0 < numberBitCount < integerSignificandBitCount, return the string represented by Decimal, in DoubleToString() 268 … < numberBitCount ≤ 0, return the string consisting of "0." and digit zeros represented by Decimal, in DoubleToString()
|
| /arkcompiler/ets_frontend/ets2panda/lexer/regexp/ |
| D | regexp.cpp | 538 ThrowError("Invalid decimal escape"); in ParseDecimalEscape() 550 ThrowError("Invalid decimal escape"); in ParseDecimalEscape() 561 ThrowError("Invalid decimal escape"); in ParseDecimalEscape()
|