i2 Notebook SDK
Search results for

    Show/hide table of contents

    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:

    data.IDecimal

    The new decimal value.

    Exceptions

    Error if the value was NaN, or too large to be a decimal, or an invalid string.

    In this article
    Back to top © N. Harris Computer Corporation