The attribute table correctly shows all data for counties. Some labels show one decimal and other labels shows as none.

I have tried to change the decimal places in the Layer Properties (Formatting-Formatting) section to 1, but this does nothing to the labels.

  • Do you want to display one decimal space in the attribute table or in labels on the map?
    – underdark
    Sep 30, 2017 at 12:14

1 Answer 1


I always use the format_number function via the expression editor (it's under Strings).

For example this expression sets all the values to have 2 decimal places:

 format_number( P_MALE,2)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.