aboutsummaryrefslogtreecommitdiffstats
path: root/const.go
diff options
context:
space:
mode:
Diffstat (limited to 'const.go')
-rw-r--r--const.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/const.go b/const.go
index 60bae20..ff0d09c 100644
--- a/const.go
+++ b/const.go
@@ -9,6 +9,9 @@ func parseConstant(s string) *float64 {
// Assign to variable because can't take address of constant.
var pi float64 = math.Pi
return &pi
+ case "e":
+ var e float64 = math.E
+ return &e
}
return nil
}