• jarogyaswamy
  • NEWBIE
  • 0 Points
  • Member since 2010

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies

The string.format() method listed in the Apex Documentation does not work.

 

This (and every other combinations I tried) generate a compile error 'method does not exist or wrong signature' !

 

<code> 

 

    double subTotal = 1000.0;
   

    strind s = string.format('{0,number,currency}', subTotal);

 

</code> 

 

Is there a way to do such a basic formating using APEX ?!?

 

Thanks,