I would say it's the same as most languages. Go implements IEEE floating
point, so any comparison with a NaN is false.
On Mon, Feb 12, 2018 at 12:40 PM, go-question <question.develo...@gmail.com>
> When working with Floating-point values in Go, what considerations need to
> be made?
> The same for any other language?
> The Spec says that "Floating-point values are comparable and ordered"
> So is comparing by some epsilon value not needed? or only for computed
> What is recommended (without external packages) when multiplying or adding
> Floating-point values?
> I know that internally those operations can be imprecise.
> 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.
You received this message because you are subscribed to the Google Groups
To unsubscribe from this group and stop receiving emails from it, send an email
For more options, visit https://groups.google.com/d/optout.