ZF2-572: Step Validator uses the unprecise fmod function and fails for floats that are internally represented differently

Issue Type: Bug Created: 2012-09-19T09:55:37.000+0000 Last Updated: 2012-10-08T20:12:21.000+0000 Status: Closed Fix version(s): Reporter: Philipp Dobrigkeit (pdobrigkeit) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend\Validator

  • validating

Related issues: Attachments:


Giving the step validator a value that cannot be correclty interpreted gives seemingly wrong results in the fmod function.

For example value 15.5, step 0.1 gives a fmod of 0.099999999999999 and not 0.0.


Posted by Ralph Schindler (ralph) on 2012-10-08T20:12:21.000+0000

This issue has been closed on Jira and moved to GitHub for issue tracking. To continue following the resolution of this issues, please visit:

Have you found an issue?

See the Overview section for more details.


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

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