MathUtilities
Provides static methods not included in the standard Math class.
Definition
Namespace:Telerik.WinForms.RichTextEditor
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public static class MathUtilities
Inheritance: objectMathUtilities
Methods
Restricts a value to be within a specified range.
Maps a value's fractional part into the unit interval, using the complementary fraction for negative values.
public static double CustomMod(double number)
The value to map by its fractional part.
Returns:For finite positive values, the fractional part in [0, 1); for finite negative values, one minus the fractional part of the absolute value. Negative integers return 1, while zero and NaN return 0. Positive and negative infinity return NaN.
Converts an integer to the lowercase Roman numeral notation used by list and field formatting.
public static string IntegerToRomanString(int number)
A nonnegative number to format.
Returns:The lowercase Roman numeral representation; an input of zero is represented by n.
number is negative.
Values greater than 32767 are incremented and reduced modulo 32768 before conversion. If this adjustment produces zero, the method returns an empty string.