decord/source/13328_ToIntlMathematicalValue.js
2026-07-29 08:29:29 +00:00

38 lines
1.3 KiB
JavaScript

// Module ID: 13328
// Function ID: 13329
// Name: ToIntlMathematicalValue
// Dependencies: [1281, 13270, 13269]
// Exports: ToIntlMathematicalValue
// Module 13328 (ToIntlMathematicalValue)
import e from "e";
import digitsToString from "digitsToString";
export const ToIntlMathematicalValue = function ToIntlMathematicalValue(arg0) {
const ToPrimitiveResult = require(13269) /* __exportStarResult32 */.ToPrimitive(arg0, "number");
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;
}
}
};