

================================================================
DSL SCIENTIFIC NOTATION IN FIELD VALUES

mlr --opprint put $y=$x+1 ./reg-test/input/scinot.dkvp
x       y
123     124
123.    124
123.4   124.4
.234    1.234
1e2     101
1e-2    1.01
1.2e3   1201
1.e3    1001
1.2e-3  1.0012
1.e-3   1.001
.2e3    201
.2e-3   1.0002
1.e-3   1.001
-123    -122
-123.   -122
-123.4  -122.4
-.234   0.766
-1e2    -99
-1e-2   0.99
-1.2e3  -1199
-1.e3   -999
-1.2e-3 0.9988
-1.e-3  0.999
-.2e3   -199
-.2e-3  0.9998
-1.e-3  0.999


================================================================
DSL SCIENTIFIC NOTATION IN EXPRESSION LITERALS

mlr --opprint put $y = 123     + $i ./reg-test/input/scinot1.dkvp
i y
1 124

mlr --opprint put $y = 123.    + $i ./reg-test/input/scinot1.dkvp
i y
1 124

mlr --opprint put $y = 123.4   + $i ./reg-test/input/scinot1.dkvp
i y
1 124.4

mlr --opprint put $y = .234    + $i ./reg-test/input/scinot1.dkvp
i y
1 1.234

mlr --opprint put $y = 1e2     + $i ./reg-test/input/scinot1.dkvp
i y
1 101

mlr --opprint put $y = 1e-2    + $i ./reg-test/input/scinot1.dkvp
i y
1 1.01

mlr --opprint put $y = 1.2e3   + $i ./reg-test/input/scinot1.dkvp
i y
1 1201

mlr --opprint put $y = 1.e3    + $i ./reg-test/input/scinot1.dkvp
i y
1 1001

mlr --opprint put $y = 1.2e-3  + $i ./reg-test/input/scinot1.dkvp
i y
1 1.0012

mlr --opprint put $y = 1.e-3   + $i ./reg-test/input/scinot1.dkvp
i y
1 1.001

mlr --opprint put $y = .2e3    + $i ./reg-test/input/scinot1.dkvp
i y
1 201

mlr --opprint put $y = .2e-3   + $i ./reg-test/input/scinot1.dkvp
i y
1 1.0002

mlr --opprint put $y = 1.e-3   + $i ./reg-test/input/scinot1.dkvp
i y
1 1.001

mlr --opprint put $y = -123    + $i ./reg-test/input/scinot1.dkvp
i y
1 -122

mlr --opprint put $y = -123.   + $i ./reg-test/input/scinot1.dkvp
i y
1 -122

mlr --opprint put $y = -123.4  + $i ./reg-test/input/scinot1.dkvp
i y
1 -122.4

mlr --opprint put $y = -.234   + $i ./reg-test/input/scinot1.dkvp
i y
1 0.766

mlr --opprint put $y = -1e2    + $i ./reg-test/input/scinot1.dkvp
i y
1 -99

mlr --opprint put $y = -1e-2   + $i ./reg-test/input/scinot1.dkvp
i y
1 0.99

mlr --opprint put $y = -1.2e3  + $i ./reg-test/input/scinot1.dkvp
i y
1 -1199

mlr --opprint put $y = -1.e3   + $i ./reg-test/input/scinot1.dkvp
i y
1 -999

mlr --opprint put $y = -1.2e-3 + $i ./reg-test/input/scinot1.dkvp
i y
1 0.9988

mlr --opprint put $y = -1.e-3  + $i ./reg-test/input/scinot1.dkvp
i y
1 0.999

mlr --opprint put $y = -.2e3   + $i ./reg-test/input/scinot1.dkvp
i y
1 -199

mlr --opprint put $y = -.2e-3  + $i ./reg-test/input/scinot1.dkvp
i y
1 0.9998

mlr --opprint put $y = -1.e-3  + $i ./reg-test/input/scinot1.dkvp
i y
1 0.999

