Home
last modified time | relevance | path

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

1234

/arkcompiler/ets_runtime/ecmascript/base/
Ddtoa_helper.cpp80 return 1; // 1: means the decimal digit in CountDecimalDigit32()
82 return 2; // 2: means the decimal digit in CountDecimalDigit32()
84 return 3; // 3: means the decimal digit in CountDecimalDigit32()
86 return 4; // 4: means the decimal digit in CountDecimalDigit32()
88 return 5; // 5: means the decimal digit in CountDecimalDigit32()
90 return 6; // 6: means the decimal digit in CountDecimalDigit32()
92 return 7; // 7: means the decimal digit in CountDecimalDigit32()
94 return 8; // 8: means the decimal digit in CountDecimalDigit32()
96 return 9; // 9: means the decimal digit in CountDecimalDigit32()
112 case 9: // 9: means the decimal digit in DigitGen()
[all …]
Dnumber_helper.cpp77 return c - 'A' + DECIMAL; in ToDigit()
80 return c - 'a' + DECIMAL; in ToDigit()
559 if ((radix == base::DECIMAL || radix == 0)) { in StringToNumber()
607 radix = DECIMAL; in StringToDoubleWithRadix()
661 int digit = static_cast<int>((current > '9') ? (current - 'a' + DECIMAL) : (current - '0')); in Carry()
722 int n; // decimal point in DoubleToCString()
855 num = 10 * num + (*(start + i) - '0'); // 10 : 10 represents the base of the decimal system in StringToInt()
971 radix = DECIMAL; in StringToDouble()
1010 // 7. deal with other radix except DECIMAL in StringToDouble()
1011 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.cpp171 radix = DECIMAL; in StringToDouble()
210 // 7. deal with other radix except DECIMAL in StringToDouble()
211 if (p == end || radix != DECIMAL) { in StringToDouble()
237 if (radix == DECIMAL && (p != end && (*p == 'e' || *p == 'E'))) { in StringToDouble()
295 radix = DECIMAL; in StringToDoubleWithRadix()
581 … // 6. If k ≤ n ≤ 21, return the String consisting of the code units of the k digits of the decimal in FpToStringDecimalRadixMainCase()
588 …// decimal representation of s, followed by the code unit 0x002E (FULL STOP), followed by the code… in FpToStringDecimalRadixMainCase()
589 // the remaining k−n digits of the decimal representation of s. in FpToStringDecimalRadixMainCase()
600 // code units of the k digits of the decimal representation of s. in FpToStringDecimalRadixMainCase()
619 // 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()
229 int digit = static_cast<int>((current > '9') ? (current - 'a' + DECIMAL) : (current - '0')); in Carry()
389 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/
Djs_bigint.h41 static constexpr uint32_t DECIMAL = 10; // 10 : decimal variable
60 uint32_t conversionToRadix = BigInt::DECIMAL);
61 …c void AppendToCString(CString &str, BigInt *bigint, uint32_t conversionToRadix = BigInt::DECIMAL);
203 uint32_t currentRadix = BigInt::DECIMAL);
Ddate_parse.h229 // 6: 6 decimal digit in IsSixDecimalDigit()
235 // 4: 4 decimal digit in IsFourDecimalDigit()
241 // 2: 2 decimal digit in IsTwoDecimalDigit()
/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/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/runtime_core/static_core/plugins/ets/stdlib/std/core/
DIntl.sts23 …pe = "literal" | "nan" | "infinity" | "percent" | "integer" | "group" | "decimal" | "fraction" | "…
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/doc/spec/
D2_lexical.rst492 Integer literals represent numbers that do not have a decimal point or
494 (hexadecimal), 10 (decimal), 8 (octal), and 2 (binary) as follows:
500 decimal
561 153 // decimal literal
562 1_153 // decimal literal
616 *Floating-point literals* represent decimal numbers and consist of a
617 whole-number part, a decimal point, a fraction part, an exponent, and
678 decimal number
693 ``BigInt`` literals use decimal radix only.
753 decimal
/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/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 radix.
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/ecmascript/builtins/
Dbuiltins_bigint.cpp174 double radix = base::DECIMAL; in ToString()
188 if (radix == base::DECIMAL) { in ToString()
/arkcompiler/ets_runtime/test/aottest/builtin_inlining/bigint/AsUintN/
DbuiltinBigIntAsUintN.ts151 …ntaxError: Cannot convert string to a BigInt,because not allow Infinity, decimal points, or expone…
165 …ntaxError: Cannot convert string to a BigInt,because not allow Infinity, decimal points, or expone…
/arkcompiler/ets_frontend/es2panda/lexer/regexp/
Dregexp.cpp525 ThrowError("Invalid decimal escape"); in ParseDecimalEscape()
537 ThrowError("Invalid decimal escape"); in ParseDecimalEscape()
548 ThrowError("Invalid decimal escape"); in ParseDecimalEscape()
/arkcompiler/ets_frontend/es2panda/util/
Dhelpers.cpp222 // 1. integerSignificand is an integer in the Decimal representation of Scientific notation. in DoubleToString()
223 …// 2. integerSignificandBitCount is the number of bits in the Decimal representation of significan… in DoubleToString()
224 // 3. numberBitCount is the number of bits in the Decimal representation of number. in DoubleToString()
246 … // If integerSignificandBitCount ≤ numberBitCount ≤ 21, return the string represented by Decimal, in DoubleToString()
250 … // If 0 < numberBitCount < integerSignificandBitCount, return the string represented by Decimal, in DoubleToString()
255 … < numberBitCount ≤ 0, return the string consisting of "0." and digit zeros represented by Decimal, in DoubleToString()
/arkcompiler/ets_frontend/ets2panda/lexer/regexp/
Dregexp.cpp524 parser_.ThrowSyntaxError("Invalid decimal escape"); in ParseDecimalEscape()
536 parser_.ThrowSyntaxError("Invalid decimal escape"); in ParseDecimalEscape()
547 parser_.ThrowSyntaxError("Invalid decimal escape"); in ParseDecimalEscape()

1234