You are here : vhdlmath_realround

round() - math_real

Rounds X to the nearest integer value (as real). If X is halfway between two integers, rounding is away from 0.0.


Syntax

function ROUND (X : in REAL ) return REAL;


Example


Output / Return Value

Rounds X to the nearest integer value (as real). If X is halfway between two integers, rounding is away from 0.0.


Limitations


Alternatives / See Also


Reference

https://standards.ieee.org/downloads/1076/1076.2-1996/math_real.vhdl