Method EinvoiceDecimal():round() Professional

Rounds the value to a number of decimal places.

Syntax
:round( [<nDp>] ) --> oResult
Parameters
<nDp>
The number of decimal places to round to. This defaults to 2.
Return

A new EinvoiceDecimal object with the rounded value.

Description

Rounds the value of the object to <nDp> decimal places. Values exactly halfway between two results are rounded away from zero. The rounded value can be used in further exact calculations without loss of precision.

The method returns a new EinvoiceDecimal object. The value of the object itself is not changed.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.