| /arkcompiler/ets_runtime/ecmascript/base/ |
| D | number_helper.cpp | 48 return c - 'A' + DECIMAL; in ToDigit() 51 return c - 'a' + DECIMAL; in ToDigit() 204 radix = DECIMAL; in StringToDoubleWithRadix() 257 int digit = static_cast<int>((current > '9') ? (current - 'a' + DECIMAL) : (current - '0')); in Carry() 353 …// that k is the number of digits in the decimal representation of s and that s is not divisible b… in NumberToString() 381 … // 6. If k ≤ n ≤ 21, return the String consisting of the code units of the k digits of the decimal in NumberToString() 387 …// decimal representation of s, followed by the code unit 0x002E (FULL STOP), followed by the code… in NumberToString() 388 // the remaining k−n digits of the decimal representation of s. in NumberToString() 394 // code units of the k digits of the decimal representation of s. in NumberToString() 404 // the decimal representation of the integer abs(n−1) (with no leading zeroes). in NumberToString() [all …]
|
| D | number_helper.h | 40 static constexpr uint8_t DECIMAL = 10; variable
|
| /arkcompiler/ets_runtime/ecmascript/mem/ |
| D | c_string.h | 82 buf[--position] = static_cast<int8_t>('0' - (number % 10)); // 10 : decimal in ToCString() 84 buf[--position] = static_cast<int8_t>('0' + (number % 10)); // 10 : decimal in ToCString() 86 number /= 10; // 10 : decimal in ToCString()
|
| /arkcompiler/ets_runtime/ecmascript/ |
| D | js_bigint.h | 40 static constexpr uint32_t DECIMAL = 10; // 10 : decimal variable 59 uint32_t conversionToRadix = BigInt::DECIMAL); 183 uint32_t currentRadix = BigInt::DECIMAL);
|
| D | date_parse.h | 57 // 9 : max decimal of int in ReadNumber() 223 // 6: 6 decimal digit in IsSixDecimalDigit() 229 // 4: 4 decimal digit in IsFourDecimalDigit() 235 // 2: 2 decimal digit in IsTwoDecimalDigit()
|
| D | js_number_format.cpp | 27 case StyleOption::DECIMAL: in OptionToEcmaString() 259 …tyle be ? GetOption(options, "style", "string", « "decimal", "percent", "currency", "unit" », "dec… in SetNumberFormatUnitOptions() 263 {StyleOption::DECIMAL, StyleOption::PERCENT, StyleOption::CURRENCY, StyleOption::UNIT}, in SetNumberFormatUnitOptions() 264 {"decimal", "percent", "currency", "unit"}, StyleOption::DECIMAL); in SetNumberFormatUnitOptions() 421 fractionDigitsOption.mxfdDefault = 3; // Max decimal precision is 3 in SetNumberFormatUnitOptions()
|
| D | js_number_format.h | 27 enum class StyleOption : uint8_t { DECIMAL = 0x01, CURRENCY, PERCENT, UNIT, EXCEPTION }; enumerator
|
| D | ecma_string.cpp | 566 n = n * 10 + (c - '0'); // 10: decimal factor in ToElementIndex() 598 n = n * 10 + (c - '0'); // 10: decimal factor in ToTypedArrayIndex()
|
| /arkcompiler/ets_runtime/ecmascript/tests/ |
| D | js_number_format_test.cpp | 160 …* decimal,construct a bigint type data,and the object calls the FormatNumeric method to … 161 …* type data into the corresponding decimal, and check whether the decimal meets the expe… 177 JSHandle<JSTaggedValue> styleValue(factory->NewFromASCII("decimal")); in HWTEST_F_L0()
|
| D | js_bigint_test.cpp | 302 CString bigintStdStr2 = "1234567890987654321"; // Decimal in HWTEST_F_L0() 304 JSHandle<BigInt> bigint2 = BigIntHelper::SetBigInt(thread, bigintStdStr2, BigInt::DECIMAL); in HWTEST_F_L0() 311 JSHandle<EcmaString> bigintEcmaStrDec1 = BigInt::ToString(thread, bigint1, BigInt::DECIMAL); in HWTEST_F_L0() 327 JSHandle<EcmaString> bigintEcmaStrDec2 = BigInt::ToString(thread, bigint2, BigInt::DECIMAL); in HWTEST_F_L0() 330 (bigint2->ToStdString(BigInt::DECIMAL)).c_str()); in HWTEST_F_L0()
|
| /arkcompiler/ets_runtime/ecmascript/builtins/ |
| D | builtins_bigint.cpp | 138 double radix = base::DECIMAL; in ToString() 152 if (radix == base::DECIMAL) { in ToString()
|
| D | builtins_number.cpp | 391 double radix = base::DECIMAL; in ToString() 406 if (radix == base::DECIMAL) { in ToString()
|
| /arkcompiler/ets_frontend/es2panda/lexer/regexp/ |
| D | regexp.cpp | 526 ThrowError("Invalid decimal escape"); in ParseDecimalEscape() 538 ThrowError("Invalid decimal escape"); in ParseDecimalEscape() 549 ThrowError("Invalid decimal escape"); in ParseDecimalEscape()
|
| /arkcompiler/ets_runtime/ecmascript/base/tests/ |
| D | number_helper_test.cpp | 223 …* @tc.desc: This function takes the double of integer type.When the decimal part is eight and the … 377 …* @tc.desc: Convert double decimal type to Precision type through "DoubleToPrecision" function.If … 414 …* @tc.desc: Convert double decimal type to Precision type through "DoubleToPrecision" function.If … 483 …* @tc.desc: Convert the decimal number into the hexadecimal number corresponding to Radix and conv…
|
| /arkcompiler/ets_runtime/ecmascript/builtins/tests/ |
| D | builtins_number_format_test.cpp | 130 // format decimal 139 JSHandle<JSTaggedValue> styleValue(factory->NewFromASCII("decimal")); in HWTEST_F_L0()
|
| /arkcompiler/runtime_core/docs/ |
| D | assembly_format.md | 27 * Signed/Unsigned decimal/hexadecimal/binary integers not larger than 64 bits. Hexadecimal literals… 28 * Floating-point decimal/hexadecimal literals that can be represented with IEEE 754. Hexadecimal fl…
|
| /arkcompiler/runtime_core/isa/ |
| D | isa.yaml | 70 Decimal floating-point literals can have the following parts: 74 - Decimal point 80 …Decimal floating-point literals must have at least one digit and either decimal point or exponent …
|
| /arkcompiler/runtime_core/tests/cts-generator/cts-template/ |
| D | fmod2.yaml | 583 # # TODO add test cases for maximal and minimal FP value in decimal scientific literal
|
| D | fmul2.yaml | 641 # # TODO add test cases for maximal and minimal FP value in decimal scientific literal
|
| D | fmod2.64.yaml | 583 # # TODO add test cases for maximal and minimal FP value in decimal scientific literal
|
| D | fdiv2.yaml | 654 # # TODO add test cases for maximal and minimal FP value in decimal scientific literal
|
| D | fsub2.yaml | 666 # # TODO add test cases for maximal and minimal FP value in decimal scientific literal
|
| D | fadd2.yaml | 670 # # TODO add test cases for maximal and minimal FP value in decimal scientific literal
|
| D | fmul2.64.yaml | 641 # # TODO add test cases for maximal and minimal FP value in decimal scientific literal
|
| D | fdiv2.64.yaml | 654 # # TODO add test cases for maximal and minimal FP value in decimal scientific literal
|