Skip to main content

float.tointeger()

Converts a float to an integer

Availability

Device + Agent

Returns

Integer — the truncated float

Description

This method returns the target floating-point value as an integer. The result is truncated, not rounded.

Example Code