diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2023-07-28 21:51:37 -0230 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2023-07-28 21:51:37 -0230 |
| commit | 0c696a7a9462c234bdc65a883420442d9e2cb720 (patch) | |
| tree | 94f6eaeae53bb1beb1facc18fb312ff872ad0407 /const.go | |
| parent | ca2dd62a0264c4dbe836f6fa01c2b8e3cf2a6091 (diff) | |
| download | pfc-0c696a7a9462c234bdc65a883420442d9e2cb720.zip | |
Euler's constant
Diffstat (limited to 'const.go')
| -rw-r--r-- | const.go | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 } |