Click or drag to resize

MathStringRoundToFraction Method

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: 23.0
Syntax
Public Shared Function RoundToFraction ( 
	rVal As Double,
	fractionFactor As Double,
	roundingMethod As RoundingMethod
) As String

Parameters

rVal
Type: SystemDouble
The numeric value.
fractionFactor
Type: SystemDouble
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.RuntimeRoundingMethod
The rounding method.

Return Value

Type: String
A text string that represents the numeric value.
See Also