I am using Xcode 5 to make a calculator app and I cannot figure out how to do two things.

So I am using Xcode 5 to make a calculator app and I cannot figure out how to two do two things. First, how to incorporate the decimal and two, how to make the positive to negative button. The app is only for the iPad. I would like to know how to do it asap. Here is the code I used for addition if that helps.
-(IBAction)Addition:(id)sender;{
    if (RunningTotal == 0){
        RunningTotal = SelectNumber;
    else{
        switch (Method) {
            case 1:
                RunningTotal = RunningTotal * SelectNumber;
                break;
            case 2:
                RunningTotal = RunningTotal / SelectNumber;
                break;
            case 3:
                RunningTotal = RunningTotal - SelectNumber;
                break;
            case 4:
                RunningTotal = RunningTotal + SelectNumber;
                break;
            default:
                break;
    Method= 4;
    SelectNumber= 0;

sorry i just saw the search feature and found a few of the same questions. I will check those

Similar Messages

Maybe you are looking for

  • How to change the dimensions of a display (not resolution)?

    I use a 27" iMac with a 27" Dell Monitor (1920x1080). Physically, the displays are nearly the same size, even though the resolutions are very different. This means that in 'Displays > Arrangement', the Dell monitor appears much smaller than the iMac

  • ReportDocument.ExportToStream raises "Missing Parameter Values" exception

    Hi, I have a web app built using VS 2008 which runs many reports developed in CR 2008. Most of these reports take parameters and many have embedded subreports. Many of the reports can either be viewed directly or e-mailed. For the latter, I use Repor

  • VF23 transaction - adobe standard driver program

    Dear All, Please do let me know the standard ADOBE driver program & standard ADOBE form(if exists) for VF23 transaction.  Also Do let me know the procedure.

  • Access labview dll in labwindows

    Hello, Q1. I have created a DLL in labview8.2. I have included the header file and the library file in my LabWindows project. When I compile the code it throws up an error in header file extcode.h. I have attached the error messages with this post in

  • Price List including TAX

    Hello experts I have a Price List that includes Tax. At present, if I raise an Invoice, SAP will automatically add Tax to each line however, what I would like to achieve is the following: 1. No Tax should be added. 2. The Price List amount should be