June 2017
Intermediate to advanced
400 pages
10h 32m
English
These steps cover writing and running your application:
package dataconv import "fmt" // ShowConv demonstrates some type conversion func ShowConv() { // int var a = 24 // float 64 var b = 2.0 // convert the int to a float64 for this calculation c := float64(a) * b fmt.Println(c) // fmt.Sprintf is a good way to convert to strings precision := fmt.Sprintf("%.2f", b) // print the value and the type fmt.Printf("%s - %T\n", ...Read now
Unlock full access