[QGIS-trac] [Quantum GIS] #3606: Field calculator inserts real values to the attribute table instead of rounding them to the field precision.

Quantum GIS qgis at qgis.org
Mon Mar 14 04:53:34 EDT 2011


#3606: Field calculator inserts real values to the attribute table instead of
rounding them to the field precision.
------------------------------------------+---------------------------------
   Reporter:  borysiasty                  |              Owner:               
       Type:  bug                         |             Status:  new          
   Priority:  minor: annoyance            |          Milestone:  Version 1.7.0
  Component:  Vectors                     |            Version:               
   Keywords:  field calculator precision  |   Platform_version:               
   Platform:  All                         |           Must_fix:  No           
Status_info:  0                           |  
------------------------------------------+---------------------------------
 1. Use the Field calculator to write e.g. 9/17 to an INTEGER field
 2. In the attribute table you see the real value: 0.529411764705882
 3. Press the Save button
 4. The value is updated with the proper one from layer: 1

 This behaviour is confusing for many users, and also makes the table less
 readable before saving.

-- 
Ticket URL: <http://trac.osgeo.org/qgis/ticket/3606>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats


More information about the QGIS-trac mailing list