Home
last modified time | relevance | path

Searched full:decimal (Results 1 – 25 of 88) sorted by relevance

1234

/arkcompiler/ets_runtime/ecmascript/base/
Ddtoa_helper.cpp78 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 …]
Dnumber_helper.cpp79 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/
Ddtoa_helper.cpp112 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()
Dets_intrinsics_helpers.cpp169 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()
Dets_intrinsics_helpers.h40 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/
Dtest-class-func-named-decimal-expected.txt1 SyntaxError: Unexpected token [test-class-func-named-decimal.js:21:4]
Dtest-func-named-decimal-expected.txt1 …: Unexpected token, expected identifier after 'function' keyword [test-func-named-decimal.js:17:10]
/arkcompiler/ets_frontend/es2panda/test/compiler/js/language/arguments-object/
Dtest-key-named-bound-value-expected.txt3 decimal
Dtest-key-named-bound-value.js18 1000 : 'decimal',
/arkcompiler/ets_runtime/ecmascript/tests/
Djs_number_format_test.cpp127 …* 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/
Dc_string.h86 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/
Dbigint_literals.sts19 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/
Dint_literals.params.yaml16 - '0' # decimal literals without signs and delimiters
/arkcompiler/ets_runtime/ecmascript/
Djs_bigint.h41 static constexpr uint32_t DECIMAL = 10; // 10 : decimal variable
60 uint32_t conversionToRadix = BigInt::DECIMAL);
202 uint32_t currentRadix = BigInt::DECIMAL);
Ddate_parse.h228 // 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/
DChar.sts337 * 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/
Dstd_core_Float.cpp25 if (UNLIKELY(radix != helpers::DECIMAL)) { in StdCoreFloatToString()
/arkcompiler/runtime_core/static_core/plugins/ets/doc/spec/
D2_lexical.rst426 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/
DREADME.md97 153 // decimal literal
98 1_153 // decimal literal
/arkcompiler/runtime_core/static_core/plugins/ets/doc/tutorial/
Dbasics.rst103 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/
DbuiltinBigIntAsUintN.ts143 …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/
Dbuiltins_bigint.cpp174 double radix = base::DECIMAL; in ToString()
188 if (radix == base::DECIMAL) { in ToString()
/arkcompiler/ets_frontend/es2panda/lexer/regexp/
Dregexp.cpp527 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/
Dhelpers.cpp235 // 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/
Dregexp.cpp538 ThrowError("Invalid decimal escape"); in ParseDecimalEscape()
550 ThrowError("Invalid decimal escape"); in ParseDecimalEscape()
561 ThrowError("Invalid decimal escape"); in ParseDecimalEscape()

1234