Bug #79127 [NEW]: Giving wrong mod value for

From: Date: Thu, 16 Jan 2020 12:44:21 +0000
Subject: Bug #79127 [NEW]: Giving wrong mod value for
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-224931@lists.php.net to get a copy of this message
From: dattatray dot gavade at encureit dot com Operating system: Windows 7 64 bit PHP version: Irrelevant Package: *Math Functions Bug Type: Bug Bug description:Giving wrong mod value for Description: ------------ $amount = 40.12; $amount *= 100; $val = ($amount % 100); echo $val; This is showing mod as 11 instead of 12 Test script: --------------- $amount = 40.12; $amount *= 100; $val = ($amount % 100); echo $val; // showing 11 instead of 12 Expected result: ---------------- 12 Actual result: -------------- 11 -- Edit bug report at https://bugs.php.net/bug.php?id=79127&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=79127&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=79127&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=79127&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=79127&r=needscript Try newer version: https://bugs.php.net/fix.php?id=79127&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=79127&r=support Expected behavior: https://bugs.php.net/fix.php?id=79127&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=79127&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=79127&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=79127&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=79127&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=79127&r=dst IIS Stability: https://bugs.php.net/fix.php?id=79127&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=79127&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=79127&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=79127&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=79127&r=mysqlcfg

« previous php.bugs (#224931) next »