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

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

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

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

Examples

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.

This function is not supported in the LabVIEW Run-Time Engine. This function can remain in your scripts when you build a stand-alone application or shared library, but the LabVIEW Run-Time Engine does not execute this function.

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