You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Dew.Math.Units Namespace > Classes > Math387 Class > Math387 Methods > Math387.TruncAndFracf Method
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
Math387.TruncAndFracf Method

Splits the floating point number to integer and fractional parts.

Syntax
C#
Visual Basic
public static long TruncAndFracf(float X, out float FractionalPart);
Parameters 
Description 
float X 
Defines real number to be split into integer and fractional part. 
out float FractionalPart 
Returns the fractional part of X. 

the integer part of X.

Splits the floating point number to integer and fractional parts.

Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!