Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestFloatAbs (0.24 sec)

  1. src/math/big/float_test.go

    		x := makeFloat(f)
    		r := new(Rat)
    		if res, _ := x.Rat(r); res != r {
    			t.Errorf("(%s).Rat is not using supplied *Rat", f)
    		}
    	}
    }
    
    func TestFloatAbs(t *testing.T) {
    	for _, test := range []string{
    		"0",
    		"1",
    		"1234",
    		"1.23e-2",
    		"1e-1000",
    		"1e1000",
    		"Inf",
    	} {
    		p := makeFloat(test)
    		a := new(Float).Abs(p)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 51.9K bytes
    - Viewed (0)
Back to top