Check out example codes for "Go convert float to a string". It will help you in understanding the concepts better.

Code Example 1

s := fmt.Sprintf("%f", 123.456) // s == "123.456000"

Learn ReactJs, React Native from akashmittal.com