Error message stock entry Non-terminating decimal
Submitted by Geoffvet on Tue, 18/11/2008 - 07:13
Hi noticed a bug while trying to enter stock.
If the list price divided by the pack size results in a recurring decimal it gives an error message. For instance try entering $167.89 and pack size 180. Result being 0.97232222....
Error message = Non-terminating decimal expansion; no exact representable decimal result.
Need to terminate at 2 decimal places? and perhaps round appropriately?
Thanks Geoff
RE: [OpenVPMS Developers] Error message stock entry Non-terminat
Yes, we found this one as well and added to JIRA
https://openvpms.atlassian.net/browse/OVPMS-813
Have fixed by rounding result to 3 decimal places.
Cheers Tony
-----Original Message----- From: developers-bounces@lists.openvpms.org [mailto:developers-bounces@lists.openvpms.org]On Behalf Of geoffsim@yahoo.com.au Sent: Tuesday, 18 November 2008 07:13 To: developers@lists.openvpms.org Subject: [OpenVPMS Developers] Error message stock entry Non-terminatingdecimal
Hi noticed a bug while trying to enter stock.
If the list price divided by the pack size results in a recurring decimal it gives an error message. For instance try entering $167.89 and pack size 180. Result being 0.97232222....
Error message = Non-terminating decimal expansion; no exact representable decimal result. Need to terminate at 2 decimal places? and perhaps round appropriately?
Thanks Geoff _______________________________________________ OpenVPMS Developers Mailing List developers@lists.openvpms.org http://lists.openvpms.org/mailman/listinfo/developers
_______________________________________________ OpenVPMS Developers Mailing List developers@lists.openvpms.org http://lists.openvpms.org/mailman/listinfo/developers