Help for this page

Select Code to Download


  1. or download this
    # Pad the number with a bunch of zeros
    $strValue =~ s/^(\d*)\.?(\d*)$/${1}.${2}000000000/;
    ...
    } else {
      $strValue =~ s/^(\d*\.\d{$strPrecision})\d*$/$1/;
    }
    
  2. or download this
    function ConvertNumberToCurrency (strValue, strPrecision) {
      /* 
    ...
      return (strValue);
    }