Opened 14 years ago
Closed 14 years ago
#2308 closed bug (fixed)
Field Calculator Order of Operations
Reported by: | jpalmer | Owned by: | mhugent |
---|---|---|---|
Priority: | critical: causes crash or data corruption | Milestone: | Version 1.4.0 |
Component: | Vectors | Version: | Trunk |
Keywords: | Cc: | ||
Must Fix for Release: | Yes | Platform: | Debian |
Platform Version: | WinXP SP2 | Awaiting user input: | no |
Description
The order of operations in the field calculator is wrong and does not follow the general precedence rule, that division and multiplication come before addition and subtraction.
i.e try 1+2*3.
QGIS produces 9!
Note:
See TracTickets
for help on using tickets.
Fixed in r12578