Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange errors working with 10 digit real or integers #18139

Closed
qgib opened this issue Feb 12, 2014 · 1 comment
Closed

Strange errors working with 10 digit real or integers #18139

qgib opened this issue Feb 12, 2014 · 1 comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! High Priority

Comments

@qgib
Copy link
Contributor

qgib commented Feb 12, 2014

Author Name: magerlin - (magerlin -)
Original Redmine Issue: 9552
Affected QGIS version: 2.0.1


When doing this calculation in field calculator on a shape file:

FromToStop = 100000 * From_stop + To_stop

results are sometimes negative even though From_stop and TO_stop are positive.

Error occurs both with integers and real numbers.

Directly writing a 10 digit number in an attribute in Field Calculater gives strange results too at least if the field is real 20.0:

Writing 1111111111 is OK but writing 2222222222 returns the value -2147483648 after saving.

See more here: http://osgeo-org.1560.x6.nabble.com/Error-in-simple-calculation-in-Field-Calculator-td5102486.html

I am using version 2.0.1 installed from OSGeo4W.


@qgib
Copy link
Contributor Author

qgib commented Feb 12, 2014

Author Name: magerlin - (magerlin -)


  • status_id was changed from Open to Closed

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! High Priority labels May 24, 2019
@qgib qgib closed this as completed May 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! High Priority
Projects
None yet
Development

No branches or pull requests

1 participant