You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In LineCalculator constructor calls divide function without RoundingMode, to get itemTotalNetAmount. In case if the price is a decimal number then it is throwing "non terminating decimal expansion" error.
Fixed it by adding RoundingMode parameter where divide function is called.
Also added test case in CalcuationTest class.
I have attached the patch file, thanks.
In LineCalculator constructor calls divide function without RoundingMode, to get itemTotalNetAmount. In case if the price is a decimal number then it is throwing "non terminating decimal expansion" error.
Fixed it by adding RoundingMode parameter where divide function is called.
Also added test case in CalcuationTest class.
I have attached the patch file, thanks.
Regards
Rajani
Fix_non_terminating_decimal_expansion_error_in_Linecalculator.patch
The text was updated successfully, but these errors were encountered: