Java Number Format formatNumber(final StringBuilder buf, final long number)

Here you can find the source of formatNumber(final StringBuilder buf, final long number)

Description

format Number

License

Open Source License

Declaration

private static void formatNumber(final StringBuilder buf, final long number) 

Method Source Code

//package com.java2s;
// ProjectForge is dual-licensed.

public class Main {
    private static void formatNumber(final StringBuilder buf, final long number) {
        if (number < 10) {
            buf.append("0");
        }//from ww  w .j ava 2 s  .  co  m
        buf.append(number);
    }
}

Related

  1. formatNumber(Double val, int numDec, int width)
  2. formatNumber(double value)
  3. formatNumber(double value)
  4. formatNumber(final long number)
  5. formatNumber(final String number)
  6. formatNumber(float num, int fragmentSize)
  7. formatNumber(int number)
  8. formatNumber(int number, int zeros)
  9. formatNumber(int theNumber, int theNumberOfDigits)