@technobuddha > library > Binary > Arithmetic
Function: int32()
ts
function int32(x: number): number;Defined in: int32.ts:11
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.
Parameters
| Parameter | Type | Description |
|---|---|---|
x | number | The number to convert. |
Returns
number
The 32-bit signed integer representation of the input.