Difference between revisions of "MC-Basic:PrintPointUsing"

From SoftMC-Wiki
Jump to: navigation, search
m (in construction)
(in construction)
 
Line 19: Line 19:
 
^^^^   prints in exponential format
 
^^^^   prints in exponential format
  
 
 
Only a single formatting text(containing text and formatting characters) followed by the expressions to print is allowed.
 
  
 
|TYPE=
 
|TYPE=
Line 37: Line 34:
  
 
|SCOPE=
 
|SCOPE=
Configuration, Task or Terminal
+
: Configuration, Task or Terminal
  
 
|LIMITATIONS=
 
|LIMITATIONS=
 
+
: Only a single formatting text(containing text and formatting characters) followed by the expressions to print is allowed.
  
 
|EXAMPLE=
 
|EXAMPLE=
 +
:common shared PNT as Location of XYZR
 +
::PNT = #{0,0,0,0}
 +
:--> PrintPointUsing "#.###"; PNT
 +
: #{0.000 , 0.000 , 0.000 , 0.000 ;}
  
 
|SEE ALSO=
 
|SEE ALSO=

Latest revision as of 08:31, 15 August 2019

Language: English

Prints formatted numeric variables of type point, using the specified format string. The format string contains literal text to be printed, as well as characters for formatting numeric expressions. The following characters can be used formatting numeric expressions:
       #           digital position

.            decimal position
       +           prints the sign of the expression

^^^^   prints in exponential format

Short form

PrintPointU

Syntax

PrintPointUsing "<format_string>";[<expression>];{[<expression>]}*

Availability

FirmWare 0.4.20.1 and newer

Type

<format_string>: String
<expression>: Point

Scope

Configuration, Task or Terminal

Limitations

Only a single formatting text(containing text and formatting characters) followed by the expressions to print is allowed.

Examples

common shared PNT as Location of XYZR
PNT = #{0,0,0,0}
--> PrintPointUsing "#.###"; PNT
#{0.000 , 0.000 , 0.000 , 0.000 ;}

See Also