Java: DecimalFormatter Long issues
Someone knows why this:

    public static String padDate(float value){
		return new DecimalFormat("0000000000").format(value);
	}

.

    long somelong = 888888888L;
    System.out.println(new DecimalFormat("0000000000").format(somelong));
    System.out.println(padDate(somelong));

outputs:
 
0888888888  
0888888896 

Why it doesn't work from a separate (static or not actually) function? and how to make the function work? thx
Java: DecimalFormatter Long issues
===

Someone knows why this:

    public static String padDate(float value){
		return new DecimalFormat("0000000000").format(value);
	}

.

    long somelong = 888888888L;
    System.out.println(new DecimalFormat("0000000000").format(somelong));
    System.out.println(padDate(somelong));

outputs:
 
0888888888  
0888888896 

Why it doesn't work from a separate (static or not actually) function? and how to make the function work? thx