ParamQuery Grid
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
Help
Search
Login
Register
ParamQuery grid support forum
»
General Category
»
Help for ParamQuery Grid (free version)
»
formatCurrency
« previous
next »
Print
Pages: [
1
]
Author
Topic: formatCurrency (Read 2891 times)
[email protected]
Pro Enterprise
Newbie
Posts: 4
formatCurrency
«
on:
July 02, 2015, 10:16:30 pm »
allways return positive value even when the original value is negative
Logged
paramvir
Administrator
Hero Member
Posts: 6310
Re: formatCurrency
«
Reply #1 on:
July 03, 2015, 12:15:30 am »
it always returns positive value so that custom prefix can be applied easily.
return ((value < 0) ? "-" : "") + "$" + $.paramquery.formatCurrency( value );
Logged
Print
Pages: [
1
]
« previous
next »
ParamQuery grid support forum
»
General Category
»
Help for ParamQuery Grid (free version)
»
formatCurrency