GH_DigitNumber
ReferencesMaintains and provides functionality for evaluating and modifying numbers as used in the GH_DigitScrollerBase control.
Constructors
GH_DigitNumber
#public GH_DigitNumber(GH_DigitNumber other)
Create an exact duplicate of another GH_DigitNumber instance.
Parameters:
| other (GH_DigitNumber) | Number to copy. |
GH_DigitNumber
#Create a new GH_DigitNumber instance with the specified number of decimal places and a given radix position.
Properties
IsPrimaryDigitSignificant
#Gets whether the primary digit at the given index is significant.
Parameters:
| index (int) | Index of digit to test. |
IsSecondaryDigitSignificant
#Gets whether the secondary digit at the given index is significant.
Parameters:
| index (int) | Index of digit to test. |
PrimaryDigits
#Gets the internal list of primary digits. Do not modify this list.
Radix
#Gets or sets the radix point index. A negative radix index disables the radix point, zero is not a valid index.
SecondaryDigits
#Gets the internal list of secondary digits. Do not modify this list.
Methods
AssignOffset
#Assign an offset to a given digit and recursively adjust all leftwards offsets if needed.