Home > @i2analyze/notebook-sdk > app > IValueFactory > createDecimal
app.IValueFactory.createDecimal() method
Creates a decimal value from a number or a string.
Signature:
createDecimal(value: number | string): data.IDecimal;
Introduced: version 1.1
Parameters
Parameter | Type | Description |
---|---|---|
value | number | string | The number or string to initialize the decimal value from. |
Returns:
The new decimal value.
Exceptions
Error
if the value was NaN
, or too large to be a decimal, or an invalid string.