Difference between revisions of "MC-Basic:SYSTEM.PRINTMODE"

From SoftMC-Wiki
Jump to: navigation, search
m (Miborich moved page Axystems:MC-Basic:SYSTEM.PRINTMODE to MC-Basic:SYSTEM.PRINTMODE: Global renaming of Axystems: namespace into (Main):)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 +
{{Languages|MC-Basic:SYSTEM.PRINTMODE}}
 
{{MC-Basic
 
{{MC-Basic
 
|SHORT FORM=
 
|SHORT FORM=
Line 55: Line 56:
 
* [[MC-Basic:PRINT|PRINT]]
 
* [[MC-Basic:PRINT|PRINT]]
  
 
+
[[Category:MC-Basic:System|MC-Basic:System]]
 
}}
 
}}

Latest revision as of 06:56, 2 May 2017

Language: English  • 中文(简体)‎

Specifies the default format in which Longs are printed when using the PRINT instructions.

Syntax

Sys.PrintMode = <mode>

System.PrintMode = <mode>

?Sys.PrintMode

?System.PrintMode

Availability

All versions

Type

String

Range

HEX , BIN or DECIMAL

Default

DECIMAL

Scope

Terminal

Examples

System. PrintMode=decimal            'Print numbers in decimal (default) format

MyInteger = 10                               ‘Assign value to Long variable

?MyInteger                                      ‘Query the value: returns “10”

System.PrintMode = hex                  ‘Print numbers in hex format
 

?MyInteger                                      ‘Query the value: returns “0xa”

System. PrintMode=Bin                   'Print numbers in binary format

?MyInteger                                      ‘Query the value: returns “0b1010”

See Also