CONFIG DP
From MCS Wiki AVR
(Difference between revisions)
Admin (Talk | contribs)
(Created page with "= <span class="f_Header">Action</span> = This option sets the character used for the decimal point for singles and fusing. <span style="font-family: Arial;"> </span> <...")
(Created page with "= <span class="f_Header">Action</span> = This option sets the character used for the decimal point for singles and fusing. <span style="font-family: Arial;"> </span> <...")
Latest revision as of 22:18, 7 February 2013
Contents |
Action
This option sets the character used for the decimal point for singles and fusing.
Syntax
CONFIG DP= "dp"
Remarks
The decimal point is a dot (.) by default. The STR() and FUSING functions convert a single into a string. The fraction is separated by a dot. In a number of counties the comma is used as a separator.
Old Syntax:
Valid options are : CONFIG DP = "." and CONFIG DP = ","
New preferred Syntax:
Valid options are : CONFIG DP = DOT and CONFIG DP = COMMA
This options only sets the character for str() and fusing for singles. In your code you still need to code with a dot : var = 1234.333
See also
NONE
Example
CONFIG DP="," Dim s as single S=1234.56 print s
Languages | English • Deutsch |
---|