The round()
function returns a floating-point value
that represents
rounded to value
base-10 digits after the decimal point. The precision
parameter is assumed to be a floating-point value,
while value
is assumed to be a positive integer. Values are
rounded to the closest representation, not towards zero.precision
If either
or value
is NULL, a NULL will be returned. If precision
is omitted, it is assumed to be zero. This will
result in a whole number, although it will still be returned as
a floating-point value.precision