Skip to content

$commafy appears to have the wrong decimal position. #3408

@CrowbarToolsRobot

Description

@CrowbarToolsRobot

Description

This thread shows the issue: https://discord.com/channels/372817064034959370/1457781651638583407/1457793134498021641

it appears that to get two decimals from the commafy variable you need to use 3 in the variable.

Steps to Reproduce

1.Create a log message.
2.Add $if[$math[5.1 % 1] == 0, $commafy[5], $commafy[5.1, 2]]
3.Run the log message and check the console. You should see 5.1 as the log output.

Expected Behavior

I'd expect $commafy[5.1, 2] to give 5.10 as the log output.

Firebot Version

v5.65.3

Submitted By

oshimia

Created via Discord.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions