Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for ExampleFloat_Copy (0.36 sec)

  1. src/math/big/floatexample_test.go

    	// -2.5             -2             -3      -2            -3             -3             -2
    	// -2.6             -3             -3      -2            -3             -3             -2
    }
    
    func ExampleFloat_Copy() {
    	var x, z big.Float
    
    	x.SetFloat64(1.23)
    	r := z.Copy(&x)
    	fmt.Printf("a) r = %g, z = %g, x = %g, r == z = %v\n", r, &z, &x, r == &z)
    
    	// changing z changes r since they are identical
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 15:46:54 UTC 2024
    - 4.1K bytes
    - Viewed (0)
Back to top