 Help WLanguage WLanguage functions Standard functions Numeric values management functions Mathematical functions Round Presentation Example Numeric value Decimal separator See also  Abs ArcCos ArcSin ArcTan2 ArcTan CoTan Conversion Cos DecimalPart DecimalToSexagesimal Exp Factorial IntegerPart IsEven IsOdd Ln Log Math functions Power Root Round RoundCeil RoundFloor RoundToMultiple SexagesimalToDecimal Sin Tangent
 Numeric valueDecimal separator WINDEV      WEBDEV    WINDEV Mobile       Others Round (Function) In french: Arrondi Returns the rounded value of a numeric value according to the specified number of decimal places.Example // Retrieve the rounded value of -16.238167ResRound = Round(-16.238167, 2)// Returns -16.24 Syntax = Round( [, ]) : Integer or realRounded value of the specified numeric value. : Real or currencyNumeric value to round. We recommend that you use the currency type in order to get reliable results. : Optional integerNumber of decimals to return. No decimal is returned if this parameter is not specified. Remarks Numeric valueIf is included between:0 and 0.49: the number is rounded to 0. For example, 3.2 is rounded to 3 (no decimal).0.5 and 0.99: the number is rounded to 1. For example, 3.7 is rounded to 4 (no decimal).Caution: The rounding performed with the "Real" type is not precise. Indeed, the operations performed with the "real" types are not precise because of the computing representation of reals. To get an exact rounding, we recommend that you use the Currency or Numeric type that is using an exact memory representation. For more details, see the real type.Decimal separatorThe decimal separator for the real numbers is "." (dot).Component: wd280mat.dll Minimum version required Version 9 This page is also available for…