Click or drag to resize

CMATH.iRound Method

Round to the nearest whole number

Namespace:  GeoEngine.Core.GXNetX
Assembly:  geoengine.core.gxnetx (in geoengine.core.gxnetx.dll) Version: 2024.2.0.25
Syntax
public static int iRound(
	CGXNETCore gxNetShared,
	double z
)

public static int iRound(
	CGXNETCore gxNetShared,
	double z
)

Parameters

gxNetShared
Type: GeoEngine.Core.GXNetX.CGXNETCore
A shared CGXNETCore
z
Type: System.Double
Round

Return Value

Type: Int32
Integer
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