[QGIS-trac] Re: [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
Fri Apr 15 09:24:08 EDT 2011


#3606: Field calculator inserts real values to the attribute table instead of
rounding them to the field precision.
------------------------------------------+---------------------------------
   Reporter:  borysiasty                  |              Owner:  jef          
       Type:  bug                         |             Status:  assigned     
   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                           |  
------------------------------------------+---------------------------------
Description changed by jef:

Old description:

> 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.

New description:

 1. Use the Field calculator to write e.g. 9/17 to an INTEGER field
  1. In the attribute table you see the real value: 0.529411764705882
  1. Press the Save button
  1. 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#comment:2>
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