Difference between revisions of "Functions:dollarFormat"

From Whirlwind eCommerce Wiki
Jump to: navigation, search
(New page: == Description == Converts a decimal to dollar output including preceding $ sign. == Syntax == $stringDollarAmount = eV::dollarFormat($decimalAmount); == Paramaters == *$decimalAmount DE...)
 
Line 1: Line 1:
 +
{{Page Template Functions Shortcuts}}
 
== Description ==
 
== Description ==
 
Converts a decimal to dollar output including preceding $ sign.
 
Converts a decimal to dollar output including preceding $ sign.

Revision as of 14:03, 21 October 2008

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