all repos — min @ 060ffb02f582d26207e28237b0fa63311e34f419

A small but practical concatenative programming language.

Corrections to floor and ceil (#74).
h3rald h3rald@h3rald.com
Tue, 12 Jan 2021 22:38:21 +0000
commit

060ffb02f582d26207e28237b0fa63311e34f419

parent

de0ae13334c64695379d8a126f6cfb4aa269d037

2 files changed, 3 insertions(+), 2 deletions(-)

jump to
M minpkg/lib/min_math.nimminpkg/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.mdnext-release.md

@@ -1,2 +1,3 @@

* Added **dsinit!** symbol. * Added **sealed?** and **sealed-sigil?** symbols. ++ **floor** and **ceil** now correctly return an integer again.