Lround - Lround - 5.3 English - 68552

AOCL API Guide (68552)

Document_ID
68552
Release_Date
2026-05-13
Version
5.3 English
long int amd_lroundf(float f)#

Rounds a single-precision value to the nearest integer and returns it as long int.

Parameters:

f – Input value.

Returns:

Rounded long int.

long int amd_lround(double d)#

Rounds a double-precision value to the nearest integer and returns it as long int.

Parameters:

d – Input value.

Returns:

Rounded long int.