aboutsummaryrefslogtreecommitdiff
path: root/modules/gdscript/gd_function.cpp
diff options
context:
space:
mode:
authorDennis Brakhane2016-06-18 13:18:31 +0200
committerDennis Brakhane2016-06-18 13:20:45 +0200
commitc246931f030fa434d9494835a565543ab7d61258 (patch)
tree976b8f53cce695b073a5df3f804ec26cf4aa5d20 /modules/gdscript/gd_function.cpp
parent916e84d08cf08de08ba6966a6fd28ffb2b2d6cd0 (diff)
downloadgodot-c246931f030fa434d9494835a565543ab7d61258.tar.gz
godot-c246931f030fa434d9494835a565543ab7d61258.tar.zst
godot-c246931f030fa434d9494835a565543ab7d61258.zip
correctly parse floats in scientific notation
GDScript incorrectly parsed float values in scientific notation when no decimal point was given. "1e-5" was parsed as "15". Fix this by not requiring a decimal point when we found an exponent for the number to be considered a float. Fixes #5267
Diffstat (limited to 'modules/gdscript/gd_function.cpp')
0 files changed, 0 insertions, 0 deletions