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

From SoftMC-Wiki
Jump to: navigation, search
m (1 revision)
 
(13 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 +
{{Languages|MC-Basic:SYSTEM.MCDOUBLE}}
 
{{MC-Basic
 
{{MC-Basic
 
|SHORT FORM=
 
|SHORT FORM=
Line 6: Line 7:
  
 
|SYNTAX=
 
|SYNTAX=
Sys.MCDouble[''<index>''] ='' <value>''<br>
+
Sys.MCDouble[<''index''>] = <''value''><br>
  
System.MCDouble[''<index>''] ='' <value>''<br>
+
System.MCDouble[<''index''>] = <''value''> <br>
  
?Sys.MCDouble[''<index>'']<br>
+
?Sys.MCDouble[<''index''>]<br>
  
?System.MCDouble[''<index>'']
+
?System.MCDouble[<''index''>]
  
 
|AVAILABILITY=
 
|AVAILABILITY=
Line 18: Line 19:
  
 
|DESCRIPTION=
 
|DESCRIPTION=
This property writes or reads the value of a Double variable written by the MC to the DPRAM. There are eight general purpose Double variables available for use by the MC in order to communicate information quickly to the host.
+
This property writes or reads the value of a Double variable written by the softMC to the DPRAM. There are eight general purpose Double variables available for use by the softMC in order to communicate information quickly to the host.
  
 
|TYPE=
 
|TYPE=
Line 24: Line 25:
  
 
|RANGE=
 
|RANGE=
0 to +/- MaxDouble<br>
+
0 to ± MaxDouble<br>
''<index>'': integer 1 to   8.
+
<''index''>: integer 1 to   8.
  
 
|UNITS=
 
|UNITS=
Line 40: Line 41:
  
 
|EXAMPLE=
 
|EXAMPLE=
System.MCDouble[2] = sin(pi/4)
+
System.MCDouble[2] = sin(pi/4)<br/>
 +
?System.MCDouble[2]
  
 
|SEE ALSO=
 
|SEE ALSO=
  
  
 +
[[Category:Obsolete|SYSTEM.MCDOUBLE]]
 +
[[Category:MC-Basic:System|MC-Basic:System]]
 
}}
 
}}

Latest revision as of 06:06, 2 May 2017

Language: English  • 中文(简体)‎

This property writes or reads the value of a Double variable written by the softMC to the DPRAM. There are eight general purpose Double variables available for use by the softMC in order to communicate information quickly to the host.

Short form

Sys.MCDoub

System.MCDoub

Syntax

Sys.MCDouble[<index>] = <value>

System.MCDouble[<index>] = <value>

?Sys.MCDouble[<index>]

?System.MCDouble[<index>]

Availability

All versions

Type

Double

Range

0 to ± MaxDouble
<index>: integer 1 to   8.

Default

0 (value of the DPRAM variable)

Scope

Task or Terminal

Examples

System.MCDouble[2] = sin(pi/4)
?System.MCDouble[2]

See Also