Math.abs(Double.NaN) < 0.0001 = false
!(Math.abs(Double.NaN) < 0.0001) = true
tested with jdk1.8.0_111, IDE Eclipse neon, gwt2.8.0, superdev mode, 
browser Chrome

On Wednesday, November 16, 2016 at 10:13:26 AM UTC+3, Kevin Langille wrote:
>
> Hi everyone,
>
> I have discovered a strange behavior in GWT 2.8. We were experiencing a 
> bug in our code and I have boiled it down to one line in the client side 
> code.
>
> The following line returns false which is expected.
>
> Math.abs(Double.NaN) < 0.0001
>
> But applying not operator to the same line also returns false.
>
> !(Math.abs(Double.NaN) < 0.0001)
>
> We are able to avoid this situation with additional checks but its seems 
> like a bug to me. Is anyone else able to confirm this issue? This was 
> working as expected in 2.7.
>
> Thanks,
> Kevin
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to