Truncate()

MathF::Truncate(float) method

Returns a float-precision floating point value that has integral part equal to that of the specified value with all fractional digits discarded.

static float System::MathF::Truncate(float x)

Arguments

ParameterTypeDescription
xfloatA decimal number

Return Value

A float-precision floating point value whose integral part is equal to that of the specified value and fractional digits are all 0.

See Also