[Overview][Constants][Types][Classes][Procedures and functions][Index] |
Round to the specified number of digits
Source position: math.pp line 263
function RoundTo( |
const AValue: Double; |
const Digits: TRoundToRange |
):Double; |
const AVAlue: Extended; |
const Digits: TRoundToRange |
):Extended; |
const AValue: Single; |
const Digits: TRoundToRange |
):Single; |
RoundTo rounds the specified float AVAlue to the specified number of digits and returns the result. This result is accurate to "10 to the power Digits". It uses the standard Round function for this.
|
Range with valid range of digits in RoundTo |
|
|
Round to the specified number of digits (rounding up if needed) |