- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for ExampleRoundToEven (1.79 sec)
-
src/math/example_test.go
} func ExampleRound() { p := math.Round(10.5) fmt.Printf("%.1f\n", p) n := math.Round(-10.5) fmt.Printf("%.1f\n", n) // Output: // 11.0 // -11.0 } func ExampleRoundToEven() { u := math.RoundToEven(11.5) fmt.Printf("%.1f\n", u) d := math.RoundToEven(12.5) fmt.Printf("%.1f\n", d) // Output: // 12.0 // 12.0 } func ExampleLog() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 07 18:09:53 UTC 2021 - 3.7K bytes - Viewed (0)