12-23-2014, 05:34 PM
Another idea:
The mpdecimal library on which newRPL is based, has a flag that indicates when an operation result is inexact.
This could be used to keep a flag within each number that would specify whether it's an exact number or an inexact result.
For example:
2 INV --> 0.5 (exact)
3 INV --> 0.33333 (inexact)
This flag can be carried over through the mathematical operations. to indicate whether a result obtained has any error from calculations or if the result is exact.
Could this be something worth implementing?
The mpdecimal library on which newRPL is based, has a flag that indicates when an operation result is inexact.
This could be used to keep a flag within each number that would specify whether it's an exact number or an inexact result.
For example:
2 INV --> 0.5 (exact)
3 INV --> 0.33333 (inexact)
This flag can be carried over through the mathematical operations. to indicate whether a result obtained has any error from calculations or if the result is exact.
Could this be something worth implementing?