I have a field called "_mean"
and I would like to remove the decimal part of all the values of that field.
I attach two pictures. One an example of my variable ("_mean"
) in the attribute table and another the type of variable which "_mean"
is. I am trying doing something like this Remove decimal points from string field using field calculator but it does not work. My version of QGIS is 3.24.0.
In the example, I would like that my variable _mean takes a values of 710000 instead of 710000.000000000000000
Best Answer
You can use the Field Calculator to create a new field with
Precision
= 0. Setting your expression to"_mean"
will carry through the values to your new field.