code: def format_value(value,number_format):
      "Convert number to string using a style string"
  
      style,sufix,scale = decode_format(number_format)
      fmt = "{0:" + style + "}" + sufix
  
      return fmt.format(scale * valuef format_value(value,number_format):
      "Convert number to string using a style string"
  
      style,sufix,scale = decode_format(number_format)
      fmt = "{0:" + style + "}" + sufix
  
      return fmt.format(scale * value)
docs: Convert number to string using a style string