Table Of Contents

format

Version:
    Last Modified: March 15, 2017

    Modifies the display format of numbers.

    Syntax

    format
    format short
    format short e
    format long
    format long e

    Format Details

    format short displays numbers in scaled fixed-point format with 4 digits after the decimal point. For example, 100*pi in short format returns 314.1593. format short e displays numbers in floating-point format with 4 digits after the decimal point. For example, 100*pi in short e format returns 3.1416E+002. format long displays numbers in scaled fixed-point format with 15 digits after the decimal point. For example, 100*pi in long format returns 314.159265358979326. format long e displays numbers in floating-point format with 15 digits after the decimal point. For example, 100*pi in long e format returns 3.141592653589793E+002. format is equivalent to format short.

    format long
    A = sqrt(2)
     
              
    format short e
    B = sqrt(2)
     
              
    format
    C = sqrt(2)

    Where This Node Can Run:

    Desktop OS: Windows

    FPGA: This product does not support FPGA devices


    Recently Viewed Topics