Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for ExampleLog2 (0.1 sec)

  1. src/math/example_test.go

    	// 12.0
    	// 12.0
    }
    
    func ExampleLog() {
    	x := math.Log(1)
    	fmt.Printf("%.1f\n", x)
    
    	y := math.Log(2.7183)
    	fmt.Printf("%.1f\n", y)
    	// Output:
    	// 0.0
    	// 1.0
    }
    
    func ExampleLog2() {
    	fmt.Printf("%.1f", math.Log2(256))
    	// Output: 8.0
    }
    
    func ExampleLog10() {
    	fmt.Printf("%.1f", math.Log10(100))
    	// Output: 2.0
    }
    
    func ExampleRemainder() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 07 18:09:53 UTC 2021
    - 3.7K bytes
    - Viewed (0)
Back to top