Skip to content

"%+f" % -0.0 evaluates to "+-0.000000" instead of "-0.000000" #81317

Closed
@mieldepoche

Description

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions