×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Java
Posted by: Karthick Bala
Added: Jul 25, 2014 10:38 AM
Views: 1772
Tags: no tags
  1.     public static String convertBigDecimalToString(BigDecimal decVal,int maxLen) throws Exception{
  2.        String result = ""; // No I18N
  3.        if( decVal != null){
  4.            result = decVal.setScale(maxLen,BigDecimal.ROUND_HALF_UP).toPlainString();
  5.        }
  6.        return result;
  7.     }