MathMethods.DoubleToFraction(Double, Int32, Double, Double) Method
Parses a given floating number into the fraction components.
Namespace: SMath.ManagerAssembly: SMath.Manager (in SMath.Manager.dll) Version: 1.73.9126.0
public static void DoubleToFraction(
double value,
int round,
out double num,
out double den
)
Public Shared Sub DoubleToFraction (
value As Double,
round As Integer,
<OutAttribute> ByRef num As Double,
<OutAttribute> ByRef den As Double
)
public:
static void DoubleToFraction(
double value,
int round,
[OutAttribute] double% num,
[OutAttribute] double% den
)
static member DoubleToFraction :
value : float *
round : int *
num : float byref *
den : float byref -> unit
Parameters
- value Double
- A floating number to parse.
- round Int32
- Value of the decimal symbols to round a value to.
- num Double
- The result numerator.
- den Double
- The result denominator.