Click or drag to resize

MathUtilTruncate Method

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Truncates a double value, removing any fractional digits.

Namespace:  Telogis.GeoBase
Assembly:  geobase.net (in geobase.net.dll) Version: 4.98.0.0
Syntax
public static double Truncate(
	double value
)

Parameters

value
Type: SystemDouble
The value to be truncated.

Return Value

Type: Double
The truncated value.
Examples
C#
double floatNumber;
floatNumber = 32.7865;
// Displays 32      
Console.WriteLine(MathUtil.Truncate(floatNumber));
See Also