pi attenuator calculator error

It may be that there are not enough digits to display, so that the wrong value is displayed.