SyntaxFix
Write A Post
Hire A Developer
Questions
You can use fmt.Sprintf or strconv.FormatFloat
For example
package main import ( "fmt" ) func main() { val := 14.7 s := fmt.Sprintf("%f", val) fmt.Println(s) }