/** * A class responsible for formatting and unformatting numbers in a percent * notation. */ define([ 'dojo/_base/declare', 'siemens/formatting/NumberFormatter' ], function(declare, NumberFormatter) { return declare(NumberFormatter, { format : function() { arguments[0] *= 100.0; return this.inherited(arguments) + this.info.configuration.symbol; }, unformat : function() { arguments[0] = arguments[0].replace( this.info.configuration.symbol, ""); return this.inherited(arguments) / 100.0; } }); });