Was this helpful?
DecimalObject Class
The DecimalObject class provides an object version of a decimal value. In most circumstances, the simple decimal variable is the most efficient and useful form of a decimal value. However, sometimes a decimal object is useful. For example, because array row references in OpenROAD must be reference variables rather than simple scalar variables, you cannot have an array that contains scalar decimal elements. However, you can get the same functionality by using an array of DecimalObjects and referring to the Value attribute of the DecimalObject to get or set the data.
To perform operations on a decimal object, one must first set the object’s Precision and Scale attributes. After setting Precision and Scale, use the Value attribute as follows:
DecimalObj.Value = 123.456
Inherits From
Inherited By
None
Attributes
Precision
Scale
Value
Methods
None
Last modified date: 12/20/2023