Showing posts with label Amount to string. Show all posts
Showing posts with label Amount to string. Show all posts

Jan 25, 2012

How to convert the amount into words ?


display tempStr amountStr()
{
    if(netAmount <= 0)

    return   '-'+ ' ' + '(' + currCode + ') ' + numeralsToTxt(-(netAmount))+' '+'Only';

    else

    return   '(' + currCode + ') ' + numeralsToTxt_EN(netAmount)+' ' +'Only';
}