Mantis - Quercus
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
3469 | major | always | 04-29-09 19:46 | 04-30-09 15:45 | |
|
|||||
Reporter: | pablorg | Platform: | |||
Assigned To: | OS: | ||||
Priority: | normal | OS Version: | |||
Status: | new | Product Version: | 3.2.1 | ||
Product Build: | Resolution: | open | |||
Projection: | none | ||||
ETA: | none | Fixed in Version: | |||
|
|||||
Summary: | 0003469: quercus float/rounding bug | ||||
Description: |
I have a report that accumulates odometer values it pulls from the db. You can see in the image it does some funky math while interpreting this code: while($rs->moveNext()) { $vehId = $rs->fields['veh_id']; if ($showSummary) { if (!isset($odomCache[$vehId])) $odomCache[$vehId] = 0; $odomCache[$vehId] += $rs->fields['distance_from_last']; $rs->fields['odom'] = $odomCache[$vehId]; } } I've put the list of values below. |
||||
Steps To Reproduce: | |||||
Additional Information: |
distance_from_last -------------------- 0 0 0.1 0.1 0.7 0.6 0 1.5 0 4.8 0.4 0 0.5 0.5 0.3 4.3 |
||||
Relationships | |||||
Attached Files: |
quercus-rounding.gif [^] (11,079 bytes) 04-29-09 19:46 php-rounding.gif [^] (10,371 bytes) 04-29-09 19:47 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|