Skip to content

Fix multipleOf float precision when BCMath formats the value. - #168

Open
mborysewicz-bl wants to merge 1 commit into
opis:masterfrom
mborysewicz-bl:fix-multipleof-float-precision
Open

mborysewicz-bl wants to merge 1 commit into
opis:masterfrom
mborysewicz-bl:fix-multipleof-float-precision

Conversation

@mborysewicz-bl

Copy link
Copy Markdown

number_format at a fixed scale prints digits a float cannot represent, so values such as 32.49 fail multipleOf 0.01.

number_format at a fixed scale prints digits a float cannot represent, so values such as 32.49 fail multipleOf 0.01.

Co-authored-by: Cursor <cursoragent@cursor.com>

This branch has not been deployed

No deployments
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.

2 participants