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-16 22:22:14 +00:00
2017-10-24 22:33:09 +00:00
2017-08-08 08:56:40 +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
2017-11-30 21:00:33 +00:00
2017-08-22 13:13:20 +00:00
2017-09-20 21:43:00 +00:00
2017-08-17 09:01:27 +00:00
2017-08-18 06:59:48 +00:00
2017-10-24 22:33:09 +00:00
2016-10-18 22:12:03 +00:00
2016-08-31 14:45:29 +00:00
2017-02-16 22:41:34 +00:00
2016-10-24 23:25:46 +00:00
2017-03-29 20:36:29 +00:00
2016-03-02 00:13:47 +00:00
2016-08-25 18:52:31 +00:00
2016-10-24 17:27:37 +00:00
2016-03-02 00:13:47 +00:00
2018-01-02 18:10:43 +00:00
2016-03-02 00:13:47 +00:00
2018-02-27 04:34:37 +00:00
2016-09-29 15:56:52 +00:00
2018-04-13 16:39:39 +00:00
2016-03-03 02:29:09 +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-10-24 23:25:46 +00:00