MathUtilities
Provides clamping, range-checking, fractional-part, and Roman numeral conversion helpers.
Definition
Namespace:Telerik.WinControls.UI.Utilities
Assembly:Telerik.WinControls.RadSpreadsheet.dll
Syntax:
public static class MathUtilities
Inheritance: objectMathUtilities
Methods
Restricts a value to be within a specified range.
Returns the fractional part using a floor-based mapping for negative values.
public static double CustomMod(double number)
The value to reduce to a fractional part.
Returns:For positive values, the fractional part in the range 0 (inclusive) to 1 (exclusive); for negative values, 1 minus the fractional part of the absolute value. Zero and NaN return 0, while positive or negative infinity returns NaN.
Exact negative integers return 1 rather than 0.
Converts an integer to a lowercase Roman numeral string.
public static string IntegerToRomanString(int number)
The integer to convert.
Returns:The numeral using lowercase Roman symbols, or n for zero. Values greater than 32767
are incremented and then reduced modulo 32768; if the adjusted value is zero, the result is
an empty string.
number is negative.