how to print a float number in golang code example Example: how to declare a float in golang var num float64 = 1.5