code: public String formatX(Locale locale, double number, String mask) throws InvalidMaskException {
  	return format(locale, number, convertMask(mask));
      }
docs: format a number with given mask
  
  @param number
  @param mask
  @return formatted number as string
  @throws InvalidMaskException