Home
last modified time | relevance | path

Searched refs:DoubleToFixed (Results 1 – 4 of 4) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/base/tests/
Dnumber_helper_test.cpp350 HWTEST_F_L0(NumberHelperTest, DoubleToFixed) in HWTEST_F_L0() argument
357 … JSHandle<EcmaString> handleEcmaStr1(thread, NumberHelper::DoubleToFixed(thread, 123.456, radix)); in HWTEST_F_L0()
362 … JSHandle<EcmaString> handleEcmaStr2(thread, NumberHelper::DoubleToFixed(thread, 123.456, radix)); in HWTEST_F_L0()
367 … JSHandle<EcmaString> handleEcmaStr3(thread, NumberHelper::DoubleToFixed(thread, 123.456, radix)); in HWTEST_F_L0()
372 … JSHandle<EcmaString> handleEcmaStr4(thread, NumberHelper::DoubleToFixed(thread, 123.456, radix)); in HWTEST_F_L0()
377 … JSHandle<EcmaString> handleEcmaStr5(thread, NumberHelper::DoubleToFixed(thread, 123.456, radix)); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/base/
Dnumber_helper.h108 static JSTaggedValue DoubleToFixed(JSThread *thread, double number, int digit);
Dnumber_helper.cpp151 JSTaggedValue NumberHelper::DoubleToFixed(JSThread *thread, double number, int digit) in DoubleToFixed() function in panda::ecmascript::base::NumberHelper
161 return DoubleToFixed(thread, number, digit - 1); in DoubleToPrecision()
169 return DoubleToFixed(thread, number, std::abs(radixDigit)); in DoubleToPrecision()
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_number.cpp293 return NumberHelper::DoubleToFixed(thread, valueNumber, static_cast<int>(digit)); in ToFixed()