Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for ExamplePow10 (0.15 sec)

  1. src/math/example_test.go

    func ExampleFloor() {
    	c := math.Floor(1.51)
    	fmt.Printf("%.1f", c)
    	// Output: 1.0
    }
    
    func ExamplePow() {
    	c := math.Pow(2, 3)
    	fmt.Printf("%.1f", c)
    	// Output: 8.0
    }
    
    func ExamplePow10() {
    	c := math.Pow10(2)
    	fmt.Printf("%.1f", c)
    	// Output: 100.0
    }
    
    func ExampleRound() {
    	p := math.Round(10.5)
    	fmt.Printf("%.1f\n", p)
    
    	n := math.Round(-10.5)
    	fmt.Printf("%.1f\n", n)
    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