import { __require as requireFloor } from "./floor.js";
import { __require as requireType } from "../../es-errors/type.js";
var truncate;
var hasRequiredTruncate;
function requireTruncate() {
  if (hasRequiredTruncate) return truncate;
  hasRequiredTruncate = 1;
  var floor = requireFloor();
  var $TypeError = requireType();
  truncate = function truncate2(x) {
    if (typeof x !== "number" && typeof x !== "bigint") {
      throw new $TypeError("argument must be a Number or a BigInt");
    }
    var result = x < 0 ? -floor(-x) : floor(x);
    return result === 0 ? 0 : result;
  };
  return truncate;
}
export {
  requireTruncate as __require
};
