Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

format (MathScript Function) (Windows, Not in Base Package)

Member of the support class.

Syntax

format

format short

format short e

format long

format long e

Description

Modifies the display format of numbers. format short displays 5 digits in scaled fixed-point format. For example, 100*pi in short format returns 314.15927. format short e displays 5 digits in floating-point format. For example, 100*pi in short e format returns 3.14159E+2. format long displays 15 digits in scaled fixed-point format. For example, 100*pi in long format returns 314.159265358979326. format long e displays 15 digits in floating-point format. For example, 100*pi in long e format returns 3.141592653589793E+2. format is equivalent to format short.

Details

Details

Changes that you make to the display format of numbers with this function apply to all MathScript Nodes in the same application instance as the LabVIEW MathScript Window.

Examples

format long
A = sqrt(2)

format short e
B = sqrt(2)

format
C = sqrt(2)


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit