+/**
+ * Returns the result of converting the provided number to an integral
+ * number.
+ *
+ * ※ This function will never return negative zero.
+ */
+export const toIntegralNumber = ($) => {
+ const n = toIntegerOrInfinity($);
+ return !isFiniteNumber(n) || n == 0 ? 0 : n;
+};
+