Open EvanPerreau opened 2 weeks ago
It's because actually, the pull request Split stdlib into submodules isn't merge, for unit test, I need to put all functions in main.ab, but for help us to split stdlib in future, I also put all functions in math.ab
then its probably better to wait for a decicion on #152 and then merge this one
yes, ok !
Hello. I just wanted to add that the implementations of floor
and ceil
are not entirely correct. They return the wrong value for negative inputs. Additionally, if the input x
is an integer, ceil
returns x+1
rather than just x
.
We'll have to write a separate file for testing the math library. We need a lot of good tests to keep this working
We'll have to write a separate file for testing the math library. We need a lot of good tests to keep this working
that should probably be as a submod to stlib.rs
, like stdlib/math.rs
ig
Hello. I just wanted to add that the implementations of
floor
andceil
are not entirely correct. They return the wrong value for negative inputs. Additionally, if the inputx
is an integer,ceil
returnsx+1
rather than justx
.
Hello, I fix this bug :)