Navigation: Scripting Reference Manual > Functions & Subroutines > Format

 

Format

 

Contact Us: fredsupport@photonengr.com

 

Description

Formats output expressions for printing.

 

Syntax

str = Format( expression, frmt )

 

Parameters

str (String)

String form of expression with format frmt imposed.

 

expression As Variant

Numeric expression.

 

frmt As Variant

Format style.

 

Remarks

Formats output expressions for printing.

 

See Also

InStrOneOf

ParseString

Example

To truncate a double precision number to three decimal places and print the result to the Output Window:

v1=3.1415926535898e-012

Print Format(v1, "0.000#")

 

 

 

 

 

Copyright © Photon Engineering, LLC