erifan01
6d5ebc7022
math: add a testcase for Mod and Remainder respectively
...
One might try to implement the Mod or Remainder function with the expression
x - TRUNC(x/y + 0.5)*y, but in fact this method is wrong, because the rounding
of (x/y + 0.5) to initialize the argument of TRUNC may lose too much precision.
However, the current test cases can not detect this error. This CL adds two
test cases to prevent people from continuing to do such attempts.
Change-Id: I6690f5cffb21bf8ae06a314b7a45cafff8bcee13
Reviewed-on: https://go-review.googlesource.com/84275
Reviewed-by: Robert Griesemer <gri@golang.org>
2018-04-17 03:17:22 +00:00
..
2018-04-05 22:02:33 +00:00
2017-11-03 20:12:07 +00:00
2017-11-27 07:44:00 +00:00
2018-04-16 22:22:14 +00:00
2017-08-25 19:15:01 +00:00
2017-05-08 19:52:30 +00:00
2018-04-03 16:08:04 +00:00
2017-05-08 19:52:30 +00:00
2018-04-17 03:17:22 +00:00
2017-05-08 19:52:30 +00:00
2017-05-08 19:52:30 +00:00
2016-03-01 23:34:33 +00:00
2016-03-01 23:34:33 +00:00
2016-03-01 23:34:33 +00:00
2016-03-01 23:34:33 +00:00
2017-05-08 19:52:30 +00:00
2018-04-03 16:08:04 +00:00
2017-05-08 19:52:30 +00:00
2017-05-08 19:52:30 +00:00
2016-03-01 23:34:33 +00:00
2016-03-01 23:34:33 +00:00
2016-03-01 23:34:33 +00:00
2016-03-01 23:34:33 +00:00
2018-04-03 16:08:04 +00:00
2016-03-01 23:34:33 +00:00
2016-03-01 23:34:33 +00:00
2016-03-01 23:34:33 +00:00
2016-03-01 23:34:33 +00:00
2017-05-08 19:52:30 +00:00
2017-05-08 19:52:30 +00:00
2017-05-08 19:52:30 +00:00
2017-10-24 22:33:09 +00:00
2018-04-03 16:08:04 +00:00
2017-05-08 19:52:30 +00:00
2017-05-08 19:52:30 +00:00
2017-08-08 08:56:40 +00:00
2018-04-03 16:08:04 +00:00
2017-11-30 21:00:33 +00:00
2017-11-30 21:00:33 +00:00
2016-03-01 23:34:33 +00:00
2017-11-30 21:00:33 +00:00
2017-11-30 21:00:33 +00:00
2017-10-30 19:05:51 +00:00
2017-11-30 21:00:33 +00:00
2017-05-08 19:52:30 +00:00
2017-05-08 19:52:30 +00:00
2017-05-08 19:52:30 +00:00
2018-04-03 16:08:04 +00:00
2017-08-22 13:13:20 +00:00
2017-08-25 20:26:19 +00:00
2016-03-01 23:34:33 +00:00
2016-03-01 23:34:33 +00:00
2016-03-01 23:34:33 +00:00
2016-03-01 23:34:33 +00:00
2016-10-05 03:53:11 +00:00
2018-03-29 07:03:09 +00:00
2016-03-01 23:34:33 +00:00
2018-03-27 19:55:02 +00:00
2016-03-01 23:34:33 +00:00
2017-09-20 21:43:00 +00:00
2018-04-03 16:08:04 +00:00
2017-08-17 09:01:27 +00:00
2016-03-01 23:34:33 +00:00
2016-03-01 23:34:33 +00:00
2016-03-01 23:34:33 +00:00
2016-03-01 23:34:33 +00:00
2018-04-03 16:08:04 +00:00
2017-08-18 06:59:48 +00:00
2017-05-08 19:52:30 +00:00
2016-03-01 23:34:33 +00:00
2016-03-01 23:34:33 +00:00
2017-10-31 19:30:54 +00:00
2016-03-01 23:34:33 +00:00
2016-09-27 23:52:12 +00:00
2016-03-01 23:34:33 +00:00
2016-09-23 13:03:08 +00:00
2016-08-26 17:27:13 +00:00
2017-10-24 22:33:09 +00:00
2016-03-01 23:34:33 +00:00
2016-03-01 23:34:33 +00:00
2016-03-01 23:34:33 +00:00
2016-03-01 23:34:33 +00:00
2016-10-18 22:12:03 +00:00
2016-03-01 23:34:33 +00:00
2016-03-01 23:34:33 +00:00
2016-03-01 23:34:33 +00:00
2016-03-01 23:34:33 +00:00
2018-02-13 20:12:23 +00:00
2018-02-13 20:12:23 +00:00
2016-08-31 14:45:29 +00:00
2017-02-16 22:41:34 +00:00
2016-03-01 23:34:33 +00:00
2016-03-01 23:34:33 +00:00
2016-03-01 23:34:33 +00:00
2016-03-01 23:34:33 +00:00
2018-03-29 23:14:13 +00:00
2018-04-04 13:39:34 -07:00
2016-03-01 23:34:33 +00:00
2016-03-01 23:34:33 +00:00
2016-03-01 23:34:33 +00:00
2016-03-01 23:34:33 +00:00
2017-05-08 19:52:30 +00:00
2016-10-24 23:25:46 +00:00
2016-03-01 23:34:33 +00:00
2016-03-01 23:34:33 +00:00
2016-03-01 23:34:33 +00:00
2016-03-01 23:34:33 +00:00
2018-04-03 16:08:04 +00:00
2015-07-15 05:35:22 +00:00
2016-03-01 23:34:33 +00:00
2017-03-29 20:36:29 +00:00
2016-03-01 23:34:33 +00:00
2016-03-01 23:34:33 +00:00
2018-04-03 16:08:04 +00:00
2016-03-02 00:13:47 +00:00
2016-03-01 23:34:33 +00:00
2016-03-01 23:34:33 +00:00
2016-03-01 23:34:33 +00:00
2016-08-25 18:52:31 +00:00
2016-03-01 23:34:33 +00:00
2016-03-01 23:34:33 +00:00
2016-10-24 17:27:37 +00:00
2016-03-01 23:34:33 +00:00
2017-11-02 13:24:32 +00:00
2016-03-02 00:13:47 +00:00
2015-02-17 14:29:18 +00:00
2017-02-22 19:17:04 +00:00
2018-04-03 16:08:04 +00:00
2017-05-08 19:52:30 +00:00
2018-01-02 18:10:43 +00:00
2016-03-01 23:34:33 +00:00
2016-03-01 23:34:33 +00:00
2016-03-01 23:34:33 +00:00
2016-03-02 00:13:47 +00:00
2016-03-01 23:34:33 +00:00
2016-03-01 23:34:33 +00:00
2016-03-01 23:34:33 +00:00
2016-03-01 23:34:33 +00:00
2018-04-03 16:08:04 +00:00
2018-02-13 20:12:23 +00:00
2017-04-24 15:09:18 +00:00
2016-03-01 23:34:33 +00:00
2017-04-24 15:09:18 +00:00
2018-04-03 16:08:04 +00:00
2016-11-11 20:20:23 +00:00
2018-02-27 04:34:37 +00:00
2016-03-01 23:34:33 +00:00
2016-09-29 15:56:52 +00:00
2016-03-01 23:34:33 +00:00
2016-03-01 23:34:33 +00:00
2018-04-13 16:39:39 +00:00
2017-11-30 17:12:32 +00:00
2016-05-02 13:43:18 +00:00
2016-04-06 23:35:56 +00:00
2016-03-03 02:29:09 +00:00
2018-03-27 19:55:02 +00:00
2017-11-30 21:00:33 +00:00
2017-11-30 21:00:33 +00:00
2017-11-30 21:00:33 +00:00
2017-11-30 21:00:33 +00:00
2016-03-01 23:34:33 +00:00
2016-03-01 23:34:33 +00:00
2016-03-01 23:34:33 +00:00
2016-03-01 23:34:33 +00:00
2018-04-03 16:08:04 +00:00
2016-10-24 23:25:46 +00:00
2018-04-03 16:08:04 +00:00
2016-11-11 20:20:23 +00:00