Home | History | Annotate | Download | only in big

Lines Matching refs:Acc

20 	u, acc := x.Uint64()
21 if acc != Exact {
28 i, acc := x.Int64()
29 if acc != Exact {
108 acc Accuracy
138 if got, acc := x.String(), x.Acc(); got != test.want || acc != test.acc {
139 t.Errorf("%s.SetPrec(%d) = %s (%s); want %s (%s)", test.x, test.prec, got, acc, test.want, test.acc)
387 a1 := f.Acc()
629 if got, acc := f.Float64(); got != want || acc != Exact {
630 t.Errorf("got %g (%s, %s); want %g (Exact)", got, f.Text('p', 0), acc, want)
759 acc Accuracy
778 out, acc := x.Uint64()
779 if out != test.out || acc != test.acc {
780 t.Errorf("%s: got %d (%s); want %d (%s)", test.x, out, acc, test.out, test.acc)
789 acc Accuracy
818 out, acc := x.Int64()
819 if out != test.out || acc != test.acc {
820 t.Errorf("%s: got %d (%s); want %d (%s)", test.x, out, acc, test.out, test.acc)
829 acc Accuracy
910 tx, tout, tacc := test.x, test.out, test.acc
923 out, acc := x.Float32()
924 if !alike32(out, tout) || acc != tacc {
925 t.Errorf("%s: got %g (%#08x, %s); want %g (%#08x, %s)", tx, out, math.Float32bits(out), acc, test.out, math.Float32bits(test.out), tacc)
943 acc Accuracy
1017 tx, tout, tacc := test.x, test.out, test.acc
1030 out, acc := x.Float64()
1031 if !alike64(out, tout) || acc != tacc {
1032 t.Errorf("%s: got %g (%#016x, %s); want %g (%#016x, %s)", tx, out, math.Float64bits(out), acc, test.out, math.Float64bits(test.out), tacc)
1049 acc Accuracy
1070 res, acc := x.Int(nil)
1075 if got != test.want || acc != test.acc {
1076 t.Errorf("%s: got %s (%s); want %s (%s)", test.x, got, acc, test.want, test.acc)
1093 acc Accuracy
1111 res, acc := x.Rat(nil)
1120 if acc != test.acc {
1121 t.Errorf("%s: got %s; want %s", test.x, acc, test.acc)
1279 got, acc := z.Float32()
1281 if got != want || acc != Exact {
1282 t.Errorf("d = %d: %g + %g = %g (%s); want %g (Exact)", d, x0, y0, got, acc, want)
1286 got, acc = z.Float32()
1288 if got != want || acc != Exact {
1289 t.Errorf("d = %d: %g - %g = %g (%s); want %g (Exact)", d, x0+y0, y0, got, acc, want)
1312 got, acc := z.Float64()
1314 if got != want || acc != Exact {
1315 t.Errorf("d = %d: %g + %g = %g (%s); want %g (Exact)", d, x0, y0, got, acc, want)
1319 got, acc = z.Float64()
1321 if got != want || acc != Exact {
1322 t.Errorf("d = %d: %g - %g = %g (%s); want %g (Exact)", d, x0+y0, y0, got, acc, want)
1479 if got := x.Acc(); got != Exact {
1480 t.Errorf("got acc = %s; want exact", got)
1528 cc, acc := C.Float64()
1533 if acc != Exact {
1534 t.Errorf("%g/%g got %s result; want exact result", a, b, acc)
1558 if got, acc := xx.Float64(); got != x || acc != Exact {
1559 t.Errorf("Float(%g) == %g (%s)", x, got, acc)
1624 acc Accuracy
1671 if got := z.Text('p', 0); got != test.want || z.Acc() != test.acc {
1674 test.prec, test.mode, x.Text('p', 0), test.op, y.Text('p', 0), got, z.Acc(), test.want, test.acc,
1726 if got, acc := z.Int64(); got != test.want || acc != Exact {
1728 test.mode, test.prec, test.x, test.op, test.y, got, acc, test.want,
1748 if got, acc := xx.Float64(); got != x || acc != Exact {
1749 t.Errorf("Float(%g) == %g (%s)", x, got, acc)