decord/source/571_sign.js

24 lines
365 B
JavaScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 571
// Function ID: 572
// Name: sign
// Dependencies: [572]
// Module 571 (sign)
2026-08-24 06:08:38 +00:00
import isNaN from "isNaN" /* 572 */;
2026-07-29 08:29:29 +00:00
export default function sign(arg0) {
let tmp = arg0;
2026-08-24 06:08:38 +00:00
if (!isNaN(arg0)) {
2026-07-29 08:29:29 +00:00
tmp = arg0;
if (0 !== arg0) {
let num2 = 1;
if (arg0 < 0) {
num2 = -1;
}
tmp = num2;
}
}
return tmp;
};