Difference between revisions of "MC-Basic:PrintPointUsing"

From SoftMC-Wiki
Jump to: navigation, search
(in construction)
 
(in construction)
 
(One intermediate revision by the same user not shown)
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=
 
* [[MC-Basic:PRINT|PRINT]]
 
* [[MC-Basic:PRINT|PRINT]]
* [[MC-Basic:PRINTPOIN|PRINTPOINT]]
+
* [[MC-Basic:PrintPoint|PRINTPOINT]]
 
* [[MC-Basic:CLOSE|CLOSE]]
 
* [[MC-Basic:CLOSE|CLOSE]]
 
* [[MC-Basic:INPUT$|INPUT$]]
 
* [[MC-Basic:INPUT$|INPUT$]]

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