go 类型转换


package main

import "fmt"

func main() {

var sum int = 17
var count int = 5
var mean float32

mean = float32(sum) / float32(count)
fmt.Println("mean is :%f\n",mean)

}




Loading Disqus comments...
Table of Contents