docs: def print_number_str(self, value, justify_right=True):
          """Print a 4 character long string of numeric values to the display. This
          function is similar to print_str but will interpret periods not as
          characters but as decimal points associated with the previous character.
          """
          # Calculate length of value without decimals.
          length = len(value.translate(None, '.'))
          # Error if value without decimals is longer than 4 characters.
          if length > 4:
              self.print_str('----')
              return
          # Calculcate starting position of digits based on justification.
          pos = (4-length) if justify_right else 0
          # Go through each character and print it on the display.
          for i, ch in enumerate(value):
              if ch == '.':
                  # Print decimal points on the previous digit.
                  self.set_decimal(pos-1, True)
              else:
                  self.set_digit(pos, ch)
                  pos += 1