golang float32/64转string

v := 3.1415926535
s1 := strconv.FormatFloat(v, 'E', -1, 32)//float32s2 := strconv.FormatFloat(v, 'E', -1, 64)//float64

 

posted @ 2018-07-31 16:28  livalon1  阅读(34088)  评论(0编辑  收藏  举报