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

6 lines
278 B
Mojo

# probe: which mixes of a Float64 with a whole-number literal does the compiler accept, and what do they print?
def main():
var x = 95.5
print(x >= 90, 2 * x, x * 2, x + 1, 1 + x, x == 95, 3 - x, 10 / x, x ** 2, 2.0 ** x)
print(90.0 <= x < 101.0, 0.5 > x, 1.5 <= x)