Bug report #3606

Field calculator inserts real values to the attribute table instead of rounding them to the field precision.

Added by Borys Jurgiel over 9 years ago. Updated about 9 years ago.

Status:Closed
Priority:Low
Assignee:Jürgen Fischer
Category:Vectors
Affected QGIS version: Regression?:No
Operating System:All Easy fix?:No
Pull Request or Patch supplied: Resolution:fixed
Crashes QGIS or corrupts data: Copied to github as #:13665

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.

Associated revisions

Revision 9fec25bc
Added by Jürgen Fischer about 9 years ago

fix #3606

git-svn-id: http://svn.osgeo.org/qgis/trunk/[email protected] c8812cc2-4d05-0410-92ff-de0c093fc19c

Revision 98d612f2
Added by Jürgen Fischer about 9 years ago

fix #3606

git-svn-id: http://svn.osgeo.org/qgis/[email protected] c8812cc2-4d05-0410-92ff-de0c093fc19c

History

#1 Updated by Jürgen Fischer about 9 years ago

  • Status changed from Open to In Progress

#2 Updated by Jürgen Fischer about 9 years ago

  • Resolution set to fixed
  • Status changed from In Progress to Closed

fixed in 98d612f2 (SVN r15707).

Also available in: Atom PDF