Calculator-multiple digit functions

i have created a calculator application but it works only on single digits & when i try to do multiple digits the new digit just replaces the do i make the functions work for multiple digits..


  • edited August 2013
    Hi, I dont know if this might help.
    	butonFourTap: function(inSender, inEvent) {
    		var n = this.$.button4.getContent();
    	var ns = this.$.numbers.getValue() + n;
    		this.$.numbers.setValue(ns);	// TODO - Auto-generated code
    tapping the buttonFour should increment your input (as text) i.e 44444, then parseFloat(yourtextnumbers) to do your calculations.
  • got it!!! thanks for the help!!
Sign In or Register to comment.