Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for formatNumber (0.16 sec)

  1. src/test/java/org/codelibs/fess/taglib/FessFunctionsTest.java

    public class FessFunctionsTest extends UnitFessTestCase {
        public void test_formatNumber() {
            assertEquals("0", FessFunctions.formatNumber(0, "###,###"));
            assertEquals("1,000", FessFunctions.formatNumber(1000, "###,###"));
            assertEquals("1,000,000", FessFunctions.formatNumber(1000000, "###,###"));
        }
    
        public void test_formatFileSize() {
            assertEquals("0", FessFunctions.formatFileSize(0));
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  2. src/main/webapp/WEB-INF/fe.tld

      </function>
    
      <function>
        <description>
          Returns formatted number from a given value.
        </description>
        <name>formatNumber</name>
        <function-class>org.codelibs.fess.taglib.FessFunctions</function-class>
        <function-signature>java.lang.String formatNumber(long, java.lang.String)</function-signature>
        <example>
          ${fe:formatNumber(doc.content_length, "###,###")}
        </example>
      </function>
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Sat Dec 23 06:18:48 UTC 2023
    - 10K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/taglib/FessFunctions.java

            return DurationFormatUtils.formatDuration(durationMillis, "d 'days' HH:mm:ss.SSS").replace("0 days", StringUtil.EMPTY).trim();
    
        }
    
        public static String formatNumber(final long value, final String pattern) {
            final DecimalFormat df = (DecimalFormat) NumberFormat.getNumberInstance(getUserLocale());
            df.applyPattern(pattern);
            return df.format(value);
        }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 16.9K bytes
    - Viewed (0)
Back to top