Issues

ZF-12002: Zend_Currency compares floating point values

Issue Type: Improvement Created: 2012-01-17T01:46:33.000+0000 Last Updated: 2012-01-17T01:47:30.000+0000 Status: Open Fix version(s): Reporter: Melby Sjamsuddin (imel96@mac.com) Assignee: Thomas Weidner (thomas) Tags: - Zend_Currency

Related issues: Attachments:

Description

Zend_Currency comparison methods are comparing floating point values instead of monetary values. I think that makes those methods unusable because in practice people only want to compare fixed precision numbers when they deal with currency.

e.g when I'm working with 2 digit precision I want $1.01 to be same when compared to 1.010101

While this is not a bug, I still feel it's not the right way to do it.

Comments

Posted by Melby Sjamsuddin (imel96@mac.com) on 2012-01-17T01:47:30.000+0000

forgot to say I hope it can be fixed in 1.11.12 (:

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts