Error message stock entry Non-terminating decimal

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

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

RE: [OpenVPMS Developers] Error message stock entry Non-terminat

Thanks Geoff,

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

Syndicate content