**syrvn 0:**Good evening! I am using ... to round a couple of doubles to two decimal places. Works, apart from one double: Any ideas?

That is not the documented way of using the *MathRound()* function. There is only one parameter, not two! It won't even compile that way, unless you have done something else entirely!

## MathRound

The function returns a value rounded off to the nearest integer of the specified numeric value.

double MathRound( double value // value to be rounded );

Parameters

value[in] Numeric value before rounding.

Return ValueValue rounded till to the nearest integer.

NoteInstead of MathRound() you can use round().

Good evening!

I am using

to round a couple of doubles to two decimal places. Works, apart from one double:

Any ideas?