Formatting Float Values

We all need to format float numbers before displaying them to users. In Golang we can use the FormatFloat() method in strconv package Here is a brief overview of how to use FormatFloat() func FormatFloat(f float64, fmt byte, prec, bitSize int) string FormatFloat() accepts 4 parameters and returns formatted number as string. The first parameter […]

Continue reading →