Functions:dollarFormat

From Whirlwind eCommerce Wiki
Revision as of 14:03, 21 October 2008 by Root (Talk | contribs)

Jump to: navigation, search
Page Template Managers

Page Template Functions

Description

Converts a decimal to dollar output including preceding $ sign.

Syntax

$stringDollarAmount = eV::dollarFormat($decimalAmount);

Paramaters

  • $decimalAmount DECIMAL
decimal amount to be converted to dollar value

Return Values

Returns a string dollar version of the provide decimal amount.


Examples

echo eV::dollarFormat(126.5);
// outputs $126.50