Skip to content
This repository was archived by the owner on Apr 24, 2023. It is now read-only.

Commit a2acf5c

Browse files
formatToReal function documentation
1 parent a08770a commit a2acf5c

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

UOL_PagSeguro-3.16.6.tgz

45 Bytes
Binary file not shown.

skin/frontend/base/default/uol/pagseguro/js/credit-card.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,13 @@ function removeNumbers(el) {
201201
return el.replace(/[0-9]/g, '');
202202
}
203203

204-
function formatToReal( int ) {
205-
var tmp = int+'';
204+
/**
205+
* Returns the value of 'moneyValue' in the Brazilian real currency format
206+
* @param {double} amount
207+
* @returns {string}
208+
*/
209+
function formatToReal( amount ) {
210+
var tmp = amount + '';
206211
var index = tmp.indexOf('.');
207212
if(index == -1) {
208213
tmp = tmp + '00';
@@ -219,4 +224,4 @@ function formatToReal( int ) {
219224
}
220225

221226
return tmp;
222-
}
227+
}

0 commit comments

Comments
 (0)