diff options
| author | gingerBill <bill@gingerbill.org> | 2018-01-28 11:59:28 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2018-01-28 11:59:28 +0000 |
| commit | 0361a185514e92ea09d5c3ac5f44601259c12761 (patch) | |
| tree | 0fc88396af4c39f4515f056f5e601f984d5949f1 | |
| parent | 83d90f146398bf6cff751d239406328dbb95e724 (diff) | |
Remove old math constants
| -rw-r--r-- | core/math.odin | 2 | ||||
| -rw-r--r-- | core/strconv.odin | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/core/math.odin b/core/math.odin index 6f72ce631..9d8221d96 100644 --- a/core/math.odin +++ b/core/math.odin @@ -1,7 +1,5 @@ TAU :: 6.28318530717958647692528676655900576; PI :: 3.14159265358979323846264338327950288; -ONE_OVER_TAU :: 0.636619772367581343075535053490057448; -ONE_OVER_PI :: 0.159154943091895335768883763372514362; E :: 2.71828182845904523536; SQRT_TWO :: 1.41421356237309504880168872420969808; diff --git a/core/strconv.odin b/core/strconv.odin index bb44348f2..bc2c34ca1 100644 --- a/core/strconv.odin +++ b/core/strconv.odin @@ -117,6 +117,9 @@ parse_f32 :: proc(s: string) -> f32 { parse_f64 :: proc(s: string) -> f64 { + if s == "" { + return 0; + } i := 0; sign: f64 = 1; |