round-10.js 284 B

1234567891011121314
  1. "use strict";
  2. module.exports = function (t, a) {
  3. a(t(55.55, -1), 55.6);
  4. a(t(55.549, -1), 55.5);
  5. a(t(55, 1), 60);
  6. a(t(54.9, 1), 50);
  7. a(t(-55.55, -1), -55.5);
  8. a(t(-55.551, -1), -55.6);
  9. a(t(-55, 1), -50);
  10. a(t(-55.1, 1), -60);
  11. a(t(1.005, -2), 1.01);
  12. a(t(-1.005, -2), -1.0);
  13. };