Number to Word Apex Code
Public Class NumberToWordClass { public String ru{get;set;} public Void NumberToWord(Integer no) { ru=''; String[] word = new List<String> { '',' ONE ',' TWO ',' THREE ',' FOUR ',' FIVE ',' SIX ',' SEVEN ',' EIGHT ',' NINE ',' TEN ', ' ELEVEN ',' TWELVE ',' THIRTEEN ',' FOURTEEN ',' FIFTEEN ',' SIXTEEN ',' SEVENTEEN ',' EIGHTEEN ',' NINETEEN ' }; String[] tens = new List<String> { '','','TWENTY','THIRTY','FORTY','FIFTY','SIXTY','SEVENTY','EIGHTY','NINETY' }; Integer n1,n2; n1=math.mod(no,100); ...