Golang strconv.ParseFloat() function example
package strconv
Golang strconv.ParseFloat() function usage example
package main
import (
"fmt"
"strconv"
)
func main() {
s := "123.010"
f, err := strconv.ParseFloat(s, 10)
if err != nil {
fmt.Println(err)
}
fmt.Println(f)
}
Reference :
Advertisement
Something interesting
Tutorials
+9.9k Golang : Qt get screen resolution and display on center example
+15.3k Golang : How to add color to string?
+6.8k Golang : Calculate pivot points for a cross
+29.5k Golang : Save map/struct to JSON or XML file
+7.8k Gogland : Where to put source code files in package directory for rookie
+5.9k Golang : Launching your executable inside a console under Linux
+12.8k Android Studio : Highlight ImageButton when pressed on example
+23k Golang : Test file read write permission example
+5k Python : Convert(cast) bytes to string example
+15.6k Golang : Find location by IP address and display with Google Map
+9.7k Golang : How to generate Code 39 barcode?
+19k Golang : Read input from console line