8 lines
217 B
Mojo
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))
|