Skip to content

Instantly share code, notes, and snippets.

@nire0510
Created February 29, 2016 11:24
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);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment