- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for ExampleFormatInt (0.14 sec)
-
src/strconv/example_test.go
fmt64 := strconv.FormatFloat(v, 'g', -1, 64) fmt.Printf("%T, %v\n", fmt64, fmt64) // Output: // string, 3.1415927E+00 // string, 3.1415926535E+00 // string, 3.1415926535 } func ExampleFormatInt() { v := int64(-42) s10 := strconv.FormatInt(v, 10) fmt.Printf("%T, %v\n", s10, s10) s16 := strconv.FormatInt(v, 16) fmt.Printf("%T, %v\n", s16, s16) // Output: // string, -42
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 13 22:57:37 UTC 2023 - 8.9K bytes - Viewed (0)