nire0510
2/29/2016 - 11:24 AM

Ember helper: rounds number to specified floating point format

Ember helper: rounds number to specified floating point format

import Ember from 'ember';

export function roundNumber(params/*, hash*/) {
  return parseInt(params[0]).toFixed(params[1] || 0);
}

export default Ember.Helper.helper(roundNumber);