Brian Fugate 85b65da6cb
Fix: #3100 function round not handling round-off errors (#3136)
* Fixing rounding bug from issue 3100

* Corrected syntax and converted if...else to logic using ternary operator

* Removing nearlyEqual comparison because a false
return value was mathematically impossible by
user input.

Adding dynamic epsilon logic to cover cases when
a user requests to round a number to a higher
precision than epsilon in the config file.

Also adding tests to cover dynamic epsilon cases.

* Removing dynamic epsilon and adding test for changing config.epsilon during runtime

* Reintroducing nearly equal verification for
round function.

Adding test case for changing epsilon at runtime.

Both tests for changing epsilon at runtime also
verify the false nearlyEqual scenario.

---------

Co-authored-by: Jos de Jong <wjosdejong@gmail.com>
2024-02-22 16:17:05 +01:00
..
2023-02-23 19:24:55 +01:00
2022-07-19 12:04:35 +02:00
2022-07-19 12:04:35 +02:00
2023-02-23 19:24:55 +01:00
2023-02-23 19:24:55 +01:00
2023-02-23 19:24:55 +01:00
2022-07-19 12:04:35 +02:00
2023-02-23 19:24:55 +01:00
2022-07-19 12:04:35 +02:00
2022-07-19 12:04:35 +02:00
2023-02-23 19:24:55 +01:00
2022-07-19 12:04:35 +02:00
2023-02-23 19:24:55 +01:00