Skip to main content

castf2i(value)

Casts a float to an integer

Availability

Device + Agent

Parameters

Name Type Description
value Float Any numerical value

Returns

Integer

Description

This function takes a 32-bit float and returns a 32-bit integer by interpreting the float’s four-byte bit pattern, in IEEE 754 format, as if it were an integer representation.