 | CMATHiRound Method |
Round to the nearest whole number
Namespace:
GeoEngine.Core.GXNet
Assembly:
geoengine.core.gxnet (in geoengine.core.gxnet.dll) Version: 2024.2.0.25
Syntaxpublic static int iRound(
double z
)
public static int iRound(
double z
)
Public Shared Function iRound (
z As Double
) As Integer
Public Shared Function iRound (
z As Double
) As Integer
public:
static int iRound(
double z
)
public:
static int iRound(
double z
)
static member iRound :
z : float -> int
static member iRound :
z : float -> int
Parameters
- z
- Type: SystemDouble
Round
Return Value
Type:
Int32Integer
Remarks
Negative values with decimal parts larger than .5 round down (-1.5 -> 2.0)
Positive values with decimal parts larger than .5 round up (1.5 -> 2.0)
Dummy values return dummy
See Also