code: public static String formatNumber(Number value, String mask, double round) {
          double val = 0;
          if (value != null) {
              val = value.doubleValue();
          }
          return formatNumber(val, mask, round);
      }
docs: /* NUMBER FORMAT FUNCTIONS