Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

format (MathScript RT Module Function)

LabVIEW 2011 MathScript RT Module Help

Edition Date: June 2011

Part Number: 373123B-01

»View Product Info

Owning Class: support

Requires: MathScript RT Module

Syntax

format

format short

format short e

format long

format long e

Description

Modifies the display format of numbers. 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.

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.

The following table lists the support characteristics of this function.

Supported in the LabVIEW Run-Time Engine No (always ignored)
Supported on RT targets Yes
Suitable for bounded execution times on RT Not characterized

Examples

format long
A = sqrt(2)

format short e
B = sqrt(2)

format
C = sqrt(2)


 

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