Need to Converting Text field to currency in Apex:
String Amount = '989898.67'
was trying out something like :
String s = ( Decimal.valueOf(i==null||i.trim()==”?’0′:i).setScale(2) + 0.001 ).format();
String p = s.substring(0,s.length()-1);
Question - What all considerations that needs to mae about data integrity ? Any direct function available ?