Home
last modified time | relevance | path

Searched refs:DECIMAL (Results 1 – 11 of 11) sorted by relevance

/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()
518 radix = DECIMAL; in StringToDouble()
558 if (p == end || radix != DECIMAL) { in StringToDouble()
567 if (radix == DECIMAL && *p == '.') { in StringToDouble()
588 if (radix == DECIMAL && (p != end && (*p == 'e' || *p == 'E'))) { in StringToDouble()
730 uint8_t radix = DECIMAL; in StringToBigInt()
Dnumber_helper.h40 static constexpr uint8_t DECIMAL = 10; variable
/arkcompiler/ets_runtime/ecmascript/
Djs_bigint.h41 static constexpr uint32_t DECIMAL = 10; // 10 : decimal variable
60 uint32_t conversionToRadix = BigInt::DECIMAL);
184 uint32_t currentRadix = BigInt::DECIMAL);
Djs_number_format.h28 enum class StyleOption : uint8_t { DECIMAL = 0x01, CURRENCY, PERCENT, UNIT, EXCEPTION }; enumerator
Djs_number_format.cpp27 case StyleOption::DECIMAL: in OptionToEcmaString()
270 {StyleOption::DECIMAL, StyleOption::PERCENT, StyleOption::CURRENCY, StyleOption::UNIT}, in SetNumberFormatUnitOptions()
271 {"decimal", "percent", "currency", "unit"}, StyleOption::DECIMAL); in SetNumberFormatUnitOptions()
Ddump.cpp1588 os << " - value : " << ToStdString(DECIMAL) << "\n"; in Dump()
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_bigint.cpp164 double radix = base::DECIMAL; in ToString()
178 if (radix == base::DECIMAL) { in ToString()
Dbuiltins_number.cpp421 double radix = base::DECIMAL; in ToString()
436 if (radix == base::DECIMAL) { in ToString()
/arkcompiler/ets_runtime/ecmascript/tests/
Djs_bigint_test.cpp304 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()
Djs_serializer_test.cpp781 JSHandle<BigInt> bigInt5 = BigIntHelper::SetBigInt(thread, str4, BigInt::DECIMAL); in BigIntTest()
1861 JSHandle<BigInt> bigInt5 = BigIntHelper::SetBigInt(thread, str4, BigInt::DECIMAL); in HWTEST_F_L0()
/arkcompiler/ets_frontend/es2panda/test/compiler/js/
Dcocos_worker_test.js1959 case i.DECIMAL: