@technobuddha/library
Version:
A large library of useful functions
12 lines (11 loc) • 396 B
TypeScript
/**
* 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;