Java Long Number Create convertLongPriceToString(long price)

Here you can find the source of convertLongPriceToString(long price)

Description

convert Long Price To String

License

Apache License

Declaration

public static String convertLongPriceToString(long price) 

Method Source Code

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

public class Main {
    public static String convertLongPriceToString(long price) {
        // DecimalFormat dfPrice = new DecimalFormat("######0.00");
        // return dfPrice.format((double) price / 100);
        return String.format("%.2f", (double) price / 100);
    }/*w w  w .  j a v  a2  s .c  om*/
}

Related

  1. convertLongArray(long[] arr)
  2. convertLongArrayFromHex(char[] hex)
  3. convertLongArrayToDoubleArray(long[] values)
  4. convertLongFromBytes(byte[] bytes)
  5. convertLongitudeFromMercator( double mercatorLongitude)
  6. convertLongtoMultiByte(long val)
  7. fromLong(byte[] buffer, int pos, long l)
  8. fromLong(long value, byte[] arr, int offset)
  9. fromLongLE(byte src[], int offset, int numBytes)