Table Of Contents

Number to Exponential String (G Dataflow)

Version:
    Last Modified: December 12, 2016

    Converts a numeric value to a string in E-format (exponential notation).

    connector_pane_image
    datatype_icon

    number

    A number to be converted into a string.

    This input can also be any data type that contains only numbers, such as an array of numbers or a cluster of numbers.

    datatype_icon

    width

    A number specifying how many characters to use to express number as a string.

    If width is less than the number of characters required, this node uses exactly as many characters as needed. If width is greater than the number of characters required, this node adds a space on the left side of the output string for each additional character.

    Default: No value — Exactly as many characters as are needed to represent the number, with no extra padding.

    datatype_icon

    precision

    A number specifying the number of digits after the decimal point in the output string. The node rounds number to this decimal place.

    Default: 0

    datatype_icon

    use system decimal point?

    Boolean specifying whether to use the system decimal separator to designate a decimal point.

    True This node uses the localized decimal separator.
    False This node uses a period as the decimal separator.

    Default: FALSE

    datatype_icon

    exponential format string

    number represented as a string in exponential format.

    The following table shows how the values of number, width, and precision affect exponential format string. In this table, the underline character ( _ ) represents a space in exponential format string.
    number width precision exponential format string Comments
    4.911 5 2 4.91e0 number is rounded, width is extended.
    .003926 10 2 _ _ _3.93e-3 number is rounded, padded with spaces on the left.
    216.01 5 0 _ _2e2 number is rounded, padded with spaces on the left.

    Where This Node Can Run:

    Desktop OS: Windows

    FPGA: DAQExpress does not support FPGA devices


    Recently Viewed Topics