Cuemon .NET Framework
RoundOff Method

A double-precision floating-point number to be rounded.
The accuracy to use in the rounding.
Rounds a double-precision floating-point value to the nearest integral value closest to the specified accuracy.
Syntax
'Declaration
 
Public Shared Function RoundOff( _
   ByVal value As Double, _
   ByVal accuracy As RoundOffAccuracy _
) As Double
public static double RoundOff( 
   double value,
   RoundOffAccuracy accuracy
)

Parameters

value
A double-precision floating-point number to be rounded.
accuracy
The accuracy to use in the rounding.

Return Value

The integer value closest to the specified accuracy of value.
Note that this method returns a System.Double instead of an integral type.
Requirements

Target Platforms: Windows 8, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

NumberUtility Class
NumberUtility Members

 

 


| Cuemon is licensed under a The MIT License (MIT)



© 2009-2015 Weubphoria. All Rights Reserved.

Documentation made easy with Document! X by Innovasys

Send Feedback