Page Menu
Home
Code
Search
Configure Global Search
Log In
Files
F884880
monetary.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1012 B
Subscribers
None
monetary.js
View Options
if
(
!
dojo
.
_hasResource
[
"dojo.cldr.monetary"
]){
//_hasResource checks added by build. Do not use _hasResource directly in your code.
dojo
.
_hasResource
[
"dojo.cldr.monetary"
]
=
true
;
dojo
.
provide
(
"dojo.cldr.monetary"
);
dojo
.
cldr
.
monetary
.
getData
=
function
(
code
){
// summary: A mapping of currency code to currency-specific formatting information. Returns a unique object with properties: places, round.
// code: an iso4217 currency code
// from http://www.unicode.org/cldr/data/common/supplemental/supplementalData.xml:supplementalData/currencyData/fractions
var
placesData
=
{
ADP
:
0
,
BHD
:
3
,
BIF
:
0
,
BYR
:
0
,
CLF
:
0
,
CLP
:
0
,
DJF
:
0
,
ESP
:
0
,
GNF
:
0
,
IQD
:
3
,
ITL
:
0
,
JOD
:
3
,
JPY
:
0
,
KMF
:
0
,
KRW
:
0
,
KWD
:
3
,
LUF
:
0
,
LYD
:
3
,
MGA
:
0
,
MGF
:
0
,
OMR
:
3
,
PYG
:
0
,
RWF
:
0
,
TND
:
3
,
TRL
:
0
,
VUV
:
0
,
XAF
:
0
,
XOF
:
0
,
XPF
:
0
};
var
roundingData
=
{
CHF
:
5
};
var
places
=
placesData
[
code
],
round
=
roundingData
[
code
];
if
(
typeof
places
==
"undefined"
){
places
=
2
;
}
if
(
typeof
round
==
"undefined"
){
round
=
0
;
}
return
{
places
:
places
,
round
:
round
};
// Object
};
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Apr 6, 11:24 (2 w, 19 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
24546
Default Alt Text
monetary.js (1012 B)
Attached To
rZED Zed
Event Timeline
Log In to Comment