Bankers Rounding or Engineering Rounding - Functional on Servers #793
Labels
feature
A desired feature
priority-medium
Baseline priority.
request
if a feature has just been requested
Is your feature request related to a problem? Please describe.
A banked python algorithms/function/tool that does bankers rounding (also sometimes referred as engineering rounding). https://docs.alipayplus.com/alipayplus/alipayplus/reconcile_mpp/bank_rounding?role=MPP&product=Payment1&version=1.5.5
Describe the solution you'd like
Like regular rounding though ,it is ideal that this rounding works for various sig figs - for example rounding to the 2nd decimal place or the hundreds or thousands.
Describe alternatives you've considered
manually creating and testing algorithms for each type of sig fig and having to copy and paste it into each algorithm over and over.
Additional context
Based on my limited understanding - this does not need to be complicated - but when I have tried running an algorthm with things like "trunc" or regular "round" I will get different answers on windows PC python and the server. Perhaps this has to do wit hthe python version or some computer science background that I am not too familiar with, but having a tool that is reliable baked into OpenDCS would make implementing a number of functions much simpler.
@oskarhurst Might have some thoughts on this - or have some insight into why this has been a challenge or may be one moving forward?
The text was updated successfully, but these errors were encountered: