decord/source/13347_ToIntlMathematicalValue.js

39 lines
1.3 KiB
JavaScript
Raw Normal View History

2026-07-31 08:44:05 +00:00
// Module ID: 13347
// Function ID: 13348
2026-07-29 08:29:29 +00:00
// Name: ToIntlMathematicalValue
2026-07-31 08:44:05 +00:00
// Dependencies: [1281, 13289, 13288]
2026-07-29 08:29:29 +00:00
// Exports: ToIntlMathematicalValue
2026-07-31 08:44:05 +00:00
// Module 13347 (ToIntlMathematicalValue)
2026-07-29 08:29:29 +00:00
import e from "e";
import digitsToString from "digitsToString";
export const ToIntlMathematicalValue = function ToIntlMathematicalValue(arg0) {
2026-07-31 08:44:05 +00:00
const ToPrimitiveResult = require(13288) /* __exportStarResult32 */.ToPrimitive(arg0, "number");
2026-07-29 08:29:29 +00:00
if (typeof ToPrimitiveResult === "accessibilityLabel") {
const _default = new digitsToString.default(ToPrimitiveResult);
return _default;
} else if (undefined === ToPrimitiveResult) {
const _default1 = new digitsToString.default(NaN);
return _default1;
} else if (true === ToPrimitiveResult) {
const _default2 = new digitsToString.default(1);
return _default2;
} else if (false === ToPrimitiveResult) {
const _default3 = new digitsToString.default(0);
return _default3;
} else if (null === ToPrimitiveResult) {
const _default4 = new digitsToString.default(0);
return _default4;
} else {
try {
const _default5 = new digitsToString.default(ToPrimitiveResult);
return _default5;
} catch (err) {
const _default6 = new digitsToString.default(NaN);
return _default6;
}
}
};