Truncate

Top  Previous  Next

Function

Parameters

Return value

Truncate

double d

double

Truncate

decimal d

decimal

 

Calculates the integral part of d.

 

Example:

 

Truncate(1.7) = 1