Corrections to floor and ceil (#74).
h3rald h3rald@h3rald.com
Tue, 12 Jan 2021 22:38:21 +0000
2 files changed,
3 insertions(+),
2 deletions(-)
M
minpkg/lib/min_math.nim
→
minpkg/lib/min_math.nim
@@ -14,11 +14,11 @@ let def = i.define()
def.symbol("floor") do (i: In): let vals = i.expect("num") - i.push vals[0].getFloat.floor.newVal + i.push BiggestInt(vals[0].getFloat.floor).newVal def.symbol("ceil") do (i: In): let vals = i.expect("num") - i.push vals[0].getFloat.ceil.newVal + i.push BiggestInt(vals[0].getFloat.ceil).newVal def.symbol("trunc") do (i: In): let vals = i.expect("num")
M
next-release.md
→
next-release.md
@@ -1,2 +1,3 @@
* Added **dsinit!** symbol. * Added **sealed?** and **sealed-sigil?** symbols. ++ **floor** and **ceil** now correctly return an integer again.