The Currency component formats strings as currency. For example, the string "1234" can be formatted as "$12.34" or "$1234.00."
Function: | CentsToDollars |
Input: | None |
Return: | String |
Description: | Converts an integer cents value into a string representing dollars and cents. For example, converts 125 cents to 1.25 dollars. |
Function: | FormatMoneyStr |
Input: | None |
Return: | String |
Description: | This function ensures all values of dollars and cents appear with two decimal places representing cents after the dollar amount, e.g. $12.00. This prevents oddly formatted values such as $12.5 by replacing it with $12.50. Note that this function does not add the '$' character. |
Function: | setCents |
Input: | String |
Return: | None |
Description: | This function is used with client-side JavaScript to detect the brand and version of the user's browser. Detects only Netscape and Microsoft browsers. |
Function: | setMoneyToFormat |
Input: | String |
Return: | None |
Description: | This function is used with client-side JavaScript to detect the brand and version of the user's browser. Detects only Netscape and Microsoft browsers. |
Environment: Client