Functions:dollarFormat

From Whirlwind eCommerce Wiki
Revision as of 06:41, 3 October 2008 by Root (Talk | contribs) (New page: == Description == Converts a decimal to dollar output including preceding $ sign. == Syntax == $stringDollarAmount = eV::dollarFormat($decimalAmount); == Paramaters == *$decimalAmount DE...)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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