|
PARAMETER EXPAND DIGITSName:
The SET PARAMETER EXPAND DIGITS command can be used to specify exactly how many digits to use after the decimal point. Note that trailing digits will be included.
If <value> is -1, then Dataplot will automatically determine the number of digits to use. If <value> is 0, the parameter will be expanded to an integer value. If <value> is a positive integer value, then the parameter will be expanded with <value> digits to the right of the decimal point.
SET PARAMETER EXPAND DIGITS -1
The 2016/05 version also increased the number of digits that can be used by the SET PARAMETER EXPAND DIGITS command from 9 to 15. One distinction is that the default expansion does not include trailing zeros. If the SET PARAMETER EXPAND DIGITS command is used, trailing zeros will be included.
let a = .0001 print "a = ^a" . let a = .00001 print "a = ^a" . let a = .000001 print "a = ^a" . let a = .0000001 print "a = ^a" . let a = .00000001 print "a = ^a" . let a = .000000001 print "a = ^a" . let a = .0000000001 print "a = ^a" . set parameter expand digits 9 let a = .000000001 print "a = ^a" . set parameter expand digits 10 let a = .0000000001 print "a = ^a" . set parameter expand digits 12 let a = .000000000001 print "a = ^a"The following output is generated. THE COMPUTED VALUE OF THE CONSTANT A = 0.1000000E-03 a = 0.0001 THE COMPUTED VALUE OF THE CONSTANT A = 0.1000000E-04 a = 0.00001 THE COMPUTED VALUE OF THE CONSTANT A = 0.1000000E-05 a = 0.000001 THE COMPUTED VALUE OF THE CONSTANT A = 0.1000000E-06 a = 0.0000001 THE COMPUTED VALUE OF THE CONSTANT A = 0.1000000E-07 a = 0.00000001 THE COMPUTED VALUE OF THE CONSTANT A = 0.1000000E-08 a = 0.000000001 THE COMPUTED VALUE OF THE CONSTANT A = 0.1000000E-09 a = 0 THE FORTRAN COMMON PARAMETER PARAEXPA HAS JUST BEEN SET TO 9 THE COMPUTED VALUE OF THE CONSTANT A = 0.1000000E-08 a = 0.000000001 THE FORTRAN COMMON PARAMETER PARAEXPA HAS JUST BEEN SET TO 10 THE COMPUTED VALUE OF THE CONSTANT A = 0.1000000E-09 a = 0.0000000001 THE FORTRAN COMMON PARAMETER PARAEXPA HAS JUST BEEN SET TO 12 THE COMPUTED VALUE OF THE CONSTANT A = 0.1000000E-11 a = 0.000000000001
|
Privacy
Policy/Security Notice
NIST is an agency of the U.S.
Commerce Department.
Date created: 05/26/2016 |