Closed GlitchlessCode closed 8 months ago
does negate have the same issue? I checked it for the other thing I fixed and it was fine but this may also be an issue there
Unsure, but I can definitely check
It does not appear to do so, for some reason
Oh, I figured out why.
Subtract needed to use $(v2p)$(var2)
in a tp, where as negate just uses it in a data modification.
It's the difference between
data modify storage gm:io out set value -1.234E-5
and
tp 91bb5-0-0-0-ffff 29999999 ~-1.234E-5 91665
First one is valid syntax, second is not
yea that was also the deal with the other case
The Problem
When exponent representation of a double or float was used,
gm:subtract
failsSolution description
Converting var2 from a string back to a double fixes this issue