 Help WLanguage WLanguage functions Standard functions Numeric values management functions Math functions RoundUp Presentation Example See also  Abs ArcCos ArcSin ArcTan2 ArcTan CoTan Conversion Cos DecimalPart DecimalToSexagesimal Exp Factorial IntegerPart IsEven IsOdd Ln Log Mathematical functions Power Root Round RoundDown RoundUp SexagesimalToDecimal Sin Tangent
 WINDEV      WEBDEV    WINDEV Mobile       Others RoundCeil (Function) In french: ArrondiSupérieur Warning From version 28, RoundUp is kept for backward compatibility. This function is replaced by RoundCeil. Returns: the numeric value rounded up to the nearest integer. New in version 28the duration rounded up to the nearest interval. New in version 28the date and time rounded up to the nearest interval. Example ResRound = RoundCeil(-16.238167, 2) // Returns -16.23ResRound = RoundCeil(3.1) // Returns 4 (no decimal)ResRound = RoundCeil(3.111, 2) // Returns 3.12ResRound = RoundCeil(1.9) // Returns 2ResRound = RoundCeil(-1.9) // Returns -1 New in version 28 // Rounded DurationResRoundedDuration is DurationResRoundedDuration = RoundCeil(13 min, 5 min) // Returns 15 min (0001500000)// The duration is divided into 5-minute periods. // The result is the end of the time range that contains 13 min. New in version 28 // Rounded DateTime variabledtMyDateTime is DateTime = "202211041524"Trace("dtMyDateTime: " + dtMyDateTime)Trace("RoundCeil: " + RoundCeil(dtMyDateTime, 7 min)) // Displays 20221104153100000 // The day is divided into 7-minute periods. Syntax Rounding a numeric value up = RoundCeil( [, ]) : Integer or realValue rounded to the greater number. : Real or currencyNumeric value to round. : Optional integerNumber of decimals to return. No decimal is returned if this parameter is not specified. Remarks The decimal separator for real numbers is "." (point).Business / UI classification: Neutral codeComponent: wd280mat.dll Minimum version required Version 16 This page is also available for…