Skip to content

[Format Numbers] Converting to AD Standard with 0 decimal places causes issues #2436

@rb-f

Description

@rb-f

Hello, I'm ten_6044 from Scratch!

If you convert a number to AD standard with 0 decimal places, numbers with trailing zeroes will have their trailing zeroes trimmed.

Steps to Reproduce

  1. Open a new proejct, and load the "Format Numbers" extension.
  2. Drag the "format number" block, and enter the following arguments:
    • Number: 10000
    • Notation: AD standard
    • Number of decimal places: 0
  3. See result.

Expected Result

The block would return 10K.

Actual Result

The block returns 1K instead.
Image

Metadata

Metadata

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