当前位置: 代码迷 >> 综合 >> 二十四、循环小数
  详细解决方案

二十四、循环小数

热度:95   发布时间:2023-09-21 05:06:30.0

a b 为int ,返回类型需为string,且小数循环体需要括住
a/b 1/3 0.(3)

package mainimport ("fmt""bytes""strconv"
)func main () {
    floatCount(5,43)fmt.Println(