Decimal separatorPrecision of the reals WINDEV WEBDEV WINDEV Mobile Others Abs (Function) In French: Abs Returns the absolute value of a numeric value or numeric expression (integer or real).Versions 15 and later This function is now available for the Android applications. New in version 15 This function is now available for the Android applications. This function is now available for the Android applications. Versions 16 and later This function is now available for the Windows Phone applications.New in version 16 This function is now available for the Windows Phone applications. This function is now available for the Windows Phone applications.Versions 17 and later This function is now available for the iPhone/iPad applications.New in version 17 This function is now available for the iPhone/iPad applications. This function is now available for the iPhone/iPad applications.Versions 18 and later This function is now available in Android Widget mode. This function is now available in Windows Store apps mode.New in version 18 This function is now available in Android Widget mode. This function is now available in Windows Store apps mode. This function is now available in Android Widget mode. This function is now available in Windows Store apps mode.Versions 21 and later This function is now available in Universal Windows 10 App mode.New in version 21 This function is now available in Universal Windows 10 App mode. This function is now available in Universal Windows 10 App mode.Example // Retrieve the absolute valueResAbsoluteValue = Abs(-16.23) // Returns 16.23ResAbsoluteValue = Abs(4.51 + 16.23) // Returns 20.74 Syntax = Abs() : Integer or realSought absolute value. : Numeric expression, integer or realNumeric expression or numeric value to use. Remarks Decimal separatorThe decimal separator for the real numbers is the one defined in the control panel of Windows. Precision of the realsIf the parameter passed to the function is a real, the result is always an 8-byte real.If the parameter passed to the function is a 4-byte real, the result will be considered as being an 8-byte real, which may result in additional decimal places when displaying the number. For example: rValue is 4-byte real = -1.70Trace(Abs(rValue)) // Displays 1.700000047684 To avoid this type of problem, we advise you to use reals (without specifying the size) or currencies.Components wd230mat.dll wp230mat.dll WDJS.DLL wd230java.jar wd230mat.so wd230android.jar See also Minimum required version Version 9 This page is also available for…