Skip to content

Request: round tag #1159

@Octal450

Description

@Octal450

I'm submitting a ...

  • feature request

Describe the request

Inside <function>, currently I am using the integer tag with a summation of 0.5 to round values. It would be great to have a tag that works like this:

<round>
    <property>myprop</property>
    <unit>5</unit>
</round>

In this case, rounding myprop to 5.

Which support rounding to any arbitrary number (10, 5, 12.5, etc) including decimal like 0.1, 0.2, etc.

What is the motivation / use case for changing the behavior?
Not needing to do this all over my code :D
image

Thanks,
Josh

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions