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;