Skip to content

Use decimals as numbers.to_string/1#14

Merged
fatboypunk merged 1 commit into
mainfrom
marcel/float-to-string
Oct 30, 2025
Merged

Use decimals as numbers.to_string/1#14
fatboypunk merged 1 commit into
mainfrom
marcel/float-to-string

Conversation

@fatboypunk

Copy link
Copy Markdown
Contributor

Because:
In our work we most often need Numbers.to_string return 3200.0 rather than 3.2e3, therefore this change is closer to the expectation of developers

This commit:
Changes the output for Numbers.to_string(3200.0) from "3.2e3" to "3200.0"

  • Review required
  • Includes 1+ tests

Because:
In our work we most often need Numbers.to_string return 3200.0 rather
than `3.2e3`, therefore this change is closer to the expectation of
developers

This commit:
Changes the output for `Numbers.to_string(3200.0)` from `"3.2e3"` to
`"3200.0"`
@coveralls

Copy link
Copy Markdown

Pull Request Test Coverage Report for Build d0965d7be188e13bfdadac90435ee2fd90f33296-PR-14

Details

  • 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 86.452%

Totals Coverage Status
Change from base Build dd98234eafbea71311947d76c66e3470d32f4da9: 0.0%
Covered Lines: 268
Relevant Lines: 310

💛 - Coveralls

@fatboypunk fatboypunk merged commit 34f0855 into main Oct 30, 2025
2 checks passed
@fatboypunk fatboypunk deleted the marcel/float-to-string branch October 30, 2025 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants