Closed bizurkur closed 1 year ago
This is a alternative to https://github.com/thephpleague/openapi-psr7-validator/pull/171 that doesn't require everyone to install bcmath to keep using this library.
Precision of 8 should be "close enough" to consider it equal. That's one 10 millionth of a fraction off... which is an incredibly small amount. 1 / 3 = 0.33333333 therefore 1 / 0.33333333 = 3 because it is "close enough."
1 / 3 = 0.33333333
1 / 0.33333333 = 3
Issue #172
Thanks @bizurkur ! Great catch
This is a alternative to https://github.com/thephpleague/openapi-psr7-validator/pull/171 that doesn't require everyone to install bcmath to keep using this library.
Precision of 8 should be "close enough" to consider it equal. That's one 10 millionth of a fraction off... which is an incredibly small amount.
1 / 3 = 0.33333333
therefore1 / 0.33333333 = 3
because it is "close enough."Issue #172