Go Data Type float32 convert to int32
package main/*w ww .j av a 2 s .c o m*/ import ( "fmt" "reflect" ) func main() { var f32 float32 = 10.4242 fmt.Println(reflect.TypeOf(f32)) i32 := int32(f32) fmt.Println(reflect.TypeOf(i32)) fmt.Println(i32) f64 := float64(i32) fmt.Println(reflect.TypeOf(f64)) }