Lines Matching +full:0 +full:x
42 // 2. Else Let n be +0. in NumberConstructor()
43 JSTaggedNumber numberValue(0); in NumberConstructor()
44 if (argv->GetArgsNumber() > 0) { in NumberConstructor()
45 JSHandle<JSTaggedValue> value = GetCallArg(argv, 0); in NumberConstructor()
78 JSTaggedValue msg = GetCallArg(argv, 0).GetTaggedValue(); in IsFinite()
93 JSHandle<JSTaggedValue> msg = GetCallArg(argv, 0); in IsInteger()
114 JSTaggedValue msg = GetCallArg(argv, 0).GetTaggedValue(); in IsNaN()
130 JSHandle<JSTaggedValue> msg = GetCallArg(argv, 0); in IsSafeInteger()
153 JSHandle<JSTaggedValue> msg = GetCallArg(argv, 0); in ParseFloat()
169 double result = NumberHelper::StringToDouble(str.begin(), str.end(), 0, base::IGNORE_TRAILING); in ParseFloat()
181 JSHandle<JSTaggedValue> msg = GetCallArg(argv, 0); in ParseInt()
183 int32_t radix = 0; in ParseInt()
208 // 1. Let x be ? thisNumberValue(this value). in ToExponential()
210 // 2. ReturnIfAbrupt(x). in ToExponential()
214 JSHandle<JSTaggedValue> digits = GetCallArg(argv, 0); in ToExponential()
220 // 6. If x is NaN, return the String "NaN". in ToExponential()
224 // 8. If x < 0, then in ToExponential()
226 // b. Let x = –x. in ToExponential()
227 // 9. If x = +infinity, then in ToExponential()
230 if (values < 0) { in ToExponential()
236 // 4. Assert: f is 0, when fractionDigits is undefined. in ToExponential()
237 // 10. If f < 0 or f > 20, throw a RangeError exception in ToExponential()
243 … THROW_RANGE_ERROR_AND_RETURN(thread, "fraction must be 0 to 100", JSTaggedValue::Exception()); in ToExponential()
256 // 1. Let x be ? thisNumberValue(this value). in ToFixed()
258 // 2. ReturnIfAbrupt(x). in ToFixed()
260 …t f be ToInteger(fractionDigits). (If fractionDigits is undefined, this step produces the value 0). in ToFixed()
261 JSHandle<JSTaggedValue> digitArgv = GetCallArg(argv, 0); in ToFixed()
264 digitInt = JSTaggedNumber(0); in ToFixed()
271 … THROW_RANGE_ERROR_AND_RETURN(thread, "fraction must be 0 to 100", JSTaggedValue::Exception()); in ToFixed()
274 // 6. If x is NaN, return the String "NaN". in ToFixed()
280 // 9. If x 1021, then in ToFixed()
281 // a. Let m = ToString(x). in ToFixed()
297 // 1. Let x be ? thisNumberValue(this value). in ToLocaleString()
298 JSHandle<JSTaggedValue> x(thread, ThisNumberValue(thread, argv)); in ToLocaleString() local
306 JSHandle<JSTaggedValue> locales = GetCallArg(argv, 0); in ToLocaleString()
312 …JSTaggedValue> result = JSNumberFormat::FormatNumeric(thread, numberFormatter, x.GetTaggedValue()); in ToLocaleString()
322 …JSHandle<JSTaggedValue> result = JSNumberFormat::FormatNumeric(thread, numberFormatter, x.GetTagge… in ToLocaleString()
327 // Return ? FormatNumeric(numberFormat, x). in ToLocaleString()
328 …JSHandle<JSTaggedValue> result = JSNumberFormat::FormatNumeric(thread, numberFormat, x.GetTaggedVa… in ToLocaleString()
340 // 1. Let x be ? thisNumberValue(this value). in ToPrecision()
342 // 2. ReturnIfAbrupt(x). in ToPrecision()
345 // 3. If precision is undefined, return ToString(x). in ToPrecision()
346 JSHandle<JSTaggedValue> digitArgv = GetCallArg(argv, 0); in ToPrecision()
355 // 6. If x is NaN, return the String "NaN". in ToPrecision()
360 // 9. If x = +infinity, then in ToPrecision()
363 if (valueNumber < 0) { in ToPrecision()
384 // 1. Let x be ? thisNumberValue(this value). in ToString()
386 // 2. ReturnIfAbrupt(x). in ToString()
392 JSHandle<JSTaggedValue> radixValue = GetCallArg(argv, 0); in ToString()
396 // 6. ReturnIfAbrupt(x). in ToString()
405 // 8. If radixNumber = 10, return ToString(x). in ToString()
411 // If x is NaN, return the String "NaN". in ToString()
415 // If x = +infinity, then in ToString()
418 if (valueNumber < 0) { in ToString()
432 // 1. Let x be ? thisNumberValue(this value). in ValueOf()
433 JSTaggedValue x = ThisNumberValue(thread, argv); in ValueOf() local
436 return x; in ValueOf()