5 lines
166 B
JavaScript
5 lines
166 B
JavaScript
UI.registerHelper('formatNumberPrecision', function(context, precision, options) {
|
|
if (context) {
|
|
return parseFloat(context).toFixed(precision);
|
|
}
|
|
}); |