my solution

Try this: .measurement( numberFormatStyle: .number.precision(.fractionLength(0)) )