Formats a numeric value as a text string, in fraction form to represent inch measurements.
Returns a fraction(for example, "1/2"), or a number and fraction(for example, "3 5/8").
Namespace: Autodesk.iLogic.Runtime
Assembly: Autodesk.iLogic.Runtime (in Autodesk.iLogic.Runtime.dll) Version: 29.0
Syntax
VB
Public Shared Function RoundToFraction ( rVal As Double, fractionFactor As Double, roundingMethod As RoundingMethod ) As String
C#
public static string RoundToFraction( double rVal, double fractionFactor, RoundingMethod roundingMethod )
Parameters
- rVal
- Type: System.Double
The numeric value. - fractionFactor
- Type: System.Double
The level of precision wanted. Must be 1/2, 1/4, 1/8, 1/16, 1/32, 1/64, or 1/128. - roundingMethod
- Type: Autodesk.iLogic.Runtime.RoundingMethod
The rounding method.
Return Value
Type: StringA text string that represents the numeric value.
