Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 332 Bytes

File metadata and controls

18 lines (14 loc) · 332 Bytes

Comparison

In addition to comparing for equality with == and !=, doubless can be compared to see if one is bigger than another using >, <, >=, and <=.

This works the same as it does with ints.

~void main() {
double x = 1.5;
double y = 0.2;

// true
IO.println(x > y);
// false
IO.println(x < y);
~}