Skip to content

Conversation

@rossbulat
Copy link
Contributor

  • Allows number strings with commas to be pased into unitToPlanck and planckToUnit.
  • Rounds unit parameter to an integer when decimal units are parsed in to these functions.
  • More tests.

Note: unitToPlanck and planckToUnit do not throw errors, but rather work with the arguments they are given.

For developers who may want more granularity in behaviour by adding validation and error handling, we can provide more robust functions in the future. These are very much plug and play functions for quick start, and work will if developers understand their opinionation.

@rossbulat rossbulat changed the title feat(utils): enhancements + more tests feat(utils):unit fn enhancements + more tests Nov 1, 2024
@rossbulat rossbulat merged commit 958b4cf into main Nov 1, 2024
@rossbulat rossbulat deleted the rb-unit-enhancements branch November 1, 2024 04:49
@rossbulat rossbulat mentioned this pull request Nov 1, 2024
@rossbulat rossbulat self-assigned this Nov 2, 2024
@rossbulat rossbulat mentioned this pull request Jun 5, 2025
@rossbulat rossbulat mentioned this pull request Jun 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants