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

From SoftMC-Wiki
Jump to: navigation, search
 
Line 43: Line 43:
 
|EXAMPLE=
 
|EXAMPLE=
 
--> sys.doubleformat = 0
 
--> sys.doubleformat = 0
 +
 
--> ?1.001
 
--> ?1.001
 +
 
1.001000000000000e+00
 
1.001000000000000e+00
 +
 
--> sys.doubleformat = 1
 
--> sys.doubleformat = 1
 +
 
--> ?1.001
 
--> ?1.001
 +
 
1.001
 
1.001
 +
 
--> sys.doubleformat = 2
 
--> sys.doubleformat = 2
 +
 
--> ?1.001
 
--> ?1.001
 +
 
1.001000
 
1.001000
 +
 
--> sys.doubleformat = 3
 
--> sys.doubleformat = 3
 +
 
--> ?1.001
 
--> ?1.001
 +
 
1.001000
 
1.001000
 +
 
-->  
 
-->  
  

Latest revision as of 13:32, 6 January 2021

Language: English  • 中文(简体)‎

Set the  printing format  of double-type numbers.

3 - print  in Floating point number        ( 1.325550 )

2 - print  in Floating point format with 6 decimals        ( 1.325550 )

1 – print  in Floating or Exponential (best fit) point format  (  132.555 )

0 - print  in Exponential format         ( 1.325550000000000e+02 )

Syntax

Sys.DoubleFormat = <number>

Availability

All versions

Type

<number>: Long

Range

<number>: 0, 1

Default

0

Scope

Configuration, Terminal

Examples

--> sys.doubleformat = 0

--> ?1.001

1.001000000000000e+00

--> sys.doubleformat = 1

--> ?1.001

1.001

--> sys.doubleformat = 2

--> ?1.001

1.001000

--> sys.doubleformat = 3

--> ?1.001

1.001000

-->

See Also