Is this expected:

```
package main

import (
        "fmt"
        "strconv"
)

func main() {
        fmt.Print(strconv.FormatFloat(0.5, 'f', 0, 64))
}
```

```
0
```

https://play.golang.org/p/HEyxpGPrX3

This is truncating, not rounding.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to