mlreportgen.dom.Number Class
Namespace: mlreportgen.dom
Description
Use an object of the mlreportgen.dom.Number class to convert a number to formatted
text that you can include in a document.
The conversion uses the first of these format specifications that it finds:
The specification in the
mlreportgen.dom.NumberFormatobject in theStyleproperty of theNumberobjectThe specification in the
NumberFormatobject in theStyleproperty of the element, such as a paragraph, list, or table, that contains theNumberobjectThe default specification set by
mlreportgen.dom.setDefaultNumberFormat
If the conversion does not find a format specification, the conversion uses the maximum number of digits needed to represent the number accurately.
The mlreportgen.dom.Number class is a handle class.
Class Attributes
ConstructOnLoad | true |
HandleCompatible | true |
For information on class attributes, see Class Attributes.
Creation
Description
numberObj = mlreportgen.dom.Number creates an
empty Number object. Use the Value
property to specify the number to convert to formatted text.
numberObj = mlreportgen.dom.Number(value) creates
a Number object with the specified value.
.
Properties
Methods
Examples
Version History
Introduced in R2021a