Home
last modified time | relevance | path

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

12

/arkcompiler/ets_runtime/ecmascript/base/
Dnumber_helper.cpp48 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 …]
Dnumber_helper.h40 static constexpr uint8_t DECIMAL = 10; variable
/arkcompiler/ets_runtime/ecmascript/mem/
Dc_string.h82 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/
Djs_bigint.h40 static constexpr uint32_t DECIMAL = 10; // 10 : decimal variable
59 uint32_t conversionToRadix = BigInt::DECIMAL);
183 uint32_t currentRadix = BigInt::DECIMAL);
Ddate_parse.h57 // 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()
Djs_number_format.cpp27 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()
Djs_number_format.h27 enum class StyleOption : uint8_t { DECIMAL = 0x01, CURRENCY, PERCENT, UNIT, EXCEPTION }; enumerator
Decma_string.cpp566 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/
Djs_number_format_test.cpp160 …* 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()
Djs_bigint_test.cpp302 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/
Dbuiltins_bigint.cpp138 double radix = base::DECIMAL; in ToString()
152 if (radix == base::DECIMAL) { in ToString()
Dbuiltins_number.cpp391 double radix = base::DECIMAL; in ToString()
406 if (radix == base::DECIMAL) { in ToString()
/arkcompiler/ets_frontend/es2panda/lexer/regexp/
Dregexp.cpp526 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/
Dnumber_helper_test.cpp223 …* @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/
Dbuiltins_number_format_test.cpp130 // format decimal
139 JSHandle<JSTaggedValue> styleValue(factory->NewFromASCII("decimal")); in HWTEST_F_L0()
/arkcompiler/runtime_core/docs/
Dassembly_format.md27 * 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/
Disa.yaml70 Decimal floating-point literals can have the following parts:
74 - Decimal point
80Decimal floating-point literals must have at least one digit and either decimal point or exponent …
/arkcompiler/runtime_core/tests/cts-generator/cts-template/
Dfmod2.yaml583 # # TODO add test cases for maximal and minimal FP value in decimal scientific literal
Dfmul2.yaml641 # # TODO add test cases for maximal and minimal FP value in decimal scientific literal
Dfmod2.64.yaml583 # # TODO add test cases for maximal and minimal FP value in decimal scientific literal
Dfdiv2.yaml654 # # TODO add test cases for maximal and minimal FP value in decimal scientific literal
Dfsub2.yaml666 # # TODO add test cases for maximal and minimal FP value in decimal scientific literal
Dfadd2.yaml670 # # TODO add test cases for maximal and minimal FP value in decimal scientific literal
Dfmul2.64.yaml641 # # TODO add test cases for maximal and minimal FP value in decimal scientific literal
Dfdiv2.64.yaml654 # # TODO add test cases for maximal and minimal FP value in decimal scientific literal

12