g.inject(Math.toRadians(45)).math('tan(_)')
0.9999999999999999
--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/ce0a4feb-bf3b-4700-9047-eab297d84451%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Is this really unexpected in computing?
Robert Dale
On Thu, Apr 12, 2018 at 6:07 PM, Kelvin Lawrence <kelvin.r...@gmail.com> wrote:
I realize this is a "feature" of the underlying Java math classes most likely but it might be worth adding a warning to the docs for the 'math' step that this can happen:
g.inject(Math.toRadians(45)).math('tan(_)')
0.9999999999999999CheersKelvin
--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-user...@googlegroups.com.