On Fri, Sep 7, 2018 at 3:43 AM, Shiming Liu <codingmyl...@gmail.com> wrote:
>
> Hi you guys, do you know how to convert big.Float to big.Int, I have
> searched with google and searched in this group, but don't found valuable
> info.
>
> In stackoverflow I got an answer
> https://stackoverflow.com/questions/47545898/golang-convert-big-float-to-big-int
> , but it's use big.Float --> float64 --> big.Int, which means it have
> precision lost in big.Float --> float64 convert, I want convert big.Float
> direct to big.Int.

https://golang.org/pkg/math/big/#Float.Int

Ian

-- 
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 golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to