Files
pplus-library/mojo/probes/float-round-sign.mojo
T
alexm 568474d52f
Test (in pplus-core) / in-core (push) Failing after 28m44s
Initial commit
2026-11-12 22:23:48 -05:00

8 lines
217 B
Mojo

# probe: does round() keep the sign when the result is zero? (yes: round(-0.3) is -0.0)
def main():
var a = -0.3
var b = -0.5
var c = 0.3
var d = -0.0
print(round(a), round(b), round(c), round(d))