Round fi
object toward nearest integer or round input data using
quantizer
object
rounds
y
= round(a
)fi
object a
to the nearest integer. In the case of a
tie, round
rounds values to the nearest integer with greater absolute
value. The rounded value is returned in fi
object
y
.
y
and a
have the same
fimath
object and DataType
property.
When the DataType
property of a
is
single
, double
, or boolean
,
the numerictype
of y
is the same as that of
a
.
When the fraction length of a
is zero or negative,
a
is already an integer, and the numerictype
of
y
is the same as that of a
.
When the fraction length of a
is positive, the fraction length of
y
is 0
, its sign is the same as that of
a
, and its word length is the difference between the word length
and the fraction length of a
, plus one bit. If a
is signed, then the minimum word length of y
is 2
.
If a
is unsigned, then the minimum word length of
y
is 1
.