Was this helpful?
FloatObject Class
The FloatObject class provides an object version of a floating-point value. In most circumstances, a simple float8 variable is the best floating point number to use. However, sometimes a simple object variant of the floating-point variable is useful.
For example, because array row references in OpenROAD must be reference variables and cannot be simple scalar variables, you cannot directly have an array that contains rows defined as single floating-point elements. However, you can easily get the same functionality by using an array of type FloatObject and referring to the Value attribute of the FloatObject to get or set the data. For example:
fobject.Value = sin(fobject.Value);
Inherits From
Inherited By
None
Attributes
Value
Methods
None
Last modified date: 12/20/2023