"%+f" % -0.0
evaluates to "+-0.000000"
instead of "-0.000000"
#81317
Closed
Description
opened on Sep 4, 2023
Godot version
4.1.1
System information
linux
Issue description
The "%+f"
format adds a +
sign in front of positive numbers. If you try to format -0.0
, it breaks and displays both a +
and a -
.
Steps to reproduce
@tool
extends EditorScript
func _run() -> void:
print("%+f" % -0.0)
Minimal reproduction project
see above
Activity