fork download
  1. object Main extends App {
  2. println (13.0 to (14.0, 0.1));
  3. println (13.0 to 14.0 by 0.1);
  4. println (1.3 to 1.4 by 0.01);
  5. println (25.5 to 30.0 by 1);
  6. println (26.0 to 27.0 by 0.2);
  7. println (7.0 to 8.2 by 0.3);
  8.  
  9. }
Success #stdin #stdout 0.33s 247488KB
stdin
Standard input is empty
stdout
NumericRange(13.0, 13.1, 13.2, 13.299999999999999, 13.399999999999999, 13.499999999999998, 13.599999999999998, 13.699999999999998, 13.799999999999997, 13.899999999999997, 13.999999999999996)
NumericRange(13.0, 13.1, 13.2, 13.299999999999999, 13.399999999999999, 13.499999999999998, 13.599999999999998, 13.699999999999998, 13.799999999999997, 13.899999999999997, 13.999999999999996)
NumericRange(1.3, 1.31, 1.32, 1.33, 1.34, 1.35, 1.36, 1.37, 1.3800000000000001, 1.3900000000000001)
NumericRange(25.5, 26.5, 27.5, 28.5, 29.5)
NumericRange(26.0, 26.2, 26.4, 26.599999999999998, 26.799999999999997, 26.999999999999996)
NumericRange(7.0, 7.3, 7.6, 7.8999999999999995)