Java Size renderNumber(int n, int size)

Here you can find the source of renderNumber(int n, int size)

Description

render Number

License

LGPL

Declaration

public static String renderNumber(int n, int size) 

Method Source Code

//package com.java2s;
//License from project: LGPL 

import java.text.NumberFormat;

public class Main {
    public static String renderNumber(int n, int size) {
        NumberFormat nf = NumberFormat.getInstance();
        nf.setMinimumIntegerDigits(size);
        nf.setGroupingUsed(false);/*from w  w w . ja v  a  2 s . co  m*/
        return nf.format(n);
    }
}

Related

  1. readableBytes(long byteSize)
  2. readableSize(long num)
  3. readableSize(long size)
  4. readableSize(long size)
  5. readableSize(long size, DecimalFormat format)
  6. size(long l)
  7. size2human(long size)
  8. sizeRenderer(String value)
  9. stringToSize(String sizeString)