Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8008303
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T18:05:45+00:00 2026-06-04T18:05:45+00:00

I have made a calculator for simple operations but I cant figure out how

  • 0

I have made a calculator for simple operations but I cant figure out how should I add the operator signs next to the numerals that I am entering.

I created 2 functions 1 on the number being entered

   -(IBAction)buttonDigitPressed:(id)sender

and another for the operation

-(IBAction)buttonOperationPressed:(id)sender. 

calculatorScreen.text = [NSString stringWithFormat:@"%.2f",result];

This is for the result to be shown on the label calculatorScreen.

The result i would like would be something like “1+2*3/4” on the calculatorScreen.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T18:05:46+00:00Added an answer on June 4, 2026 at 6:05 pm

    Sorry if I misunderstand your question, but what you want is to display on your calculator app the full equation that you’ve input thus far (e.g. 63+42-62).

    Like any other calculator, you should have 2 label, one for your current input, and one to show all that you’ve entered.(I’m guessing you need the latter)

    With the second label up, you can add in the append function into your digitpressed, enter/= function, operation function. If you want to tweak it such 16+23-32 will show up as
    1) 16+23
    2) 39-32
    3) 39-32=7

    then you’ll have to add in your own specific code. otherwise the label will input as 16+23-32 = 7

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have made a cart and the cart has remove item button, but the
I made a program in Xcode, being a simple calculator that takes a first
I have a strange problem with a calculator made using boost::spirit. This calculator is
I made a simple little calculator for math class. It does simple things like
Am new to iOS and Xcode. Am working with a simple calculator. I have
I have made a simple webcam based application that detects the edges of motion
I want to open my made calculator after clicking on edittext field. I have
I have been looking around and I cannot seem to figure out how to
I have made a simple script application which accepts radius as input from user
I have a box made out of two three-dimensional vectors. One for the front-lower-left

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.