code: def _scale(self, mode):
          
          if mode in self._mode_scale:
              scale = self._mode_scale[mode]
          else:
              scale = 10**(-self.decimals)
              self._mode_scale[mode] = scale
  
          return scale
docs: Returns value scaling coefficient for the given mode.