UNPKG

@technobuddha/library

Version:
12 lines (11 loc) 396 B
/** * Converts a number to a 32-bit signed integer. * * This function effectively truncates the decimal part of the number * and ensures the result fits within the 32-bit signed integer range. * @param x - The number to convert. * @returns The 32-bit signed integer representation of the input. * @group Binary * @category Arithmetic */ export declare function int32(x: number): number;