format (MathScript RT Module Function)

LabVIEW 2012 MathScript RT模块帮助

版本日期:June 2012

产品编号:373123C-0118

»查看产品信息
下载帮助
(仅限Windows)

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)

文章是否对您有帮助?

没有帮助