Doing math calculations | Build some "custom" calculator?

Howdy!

Sorry if this is the wrong section, totally newbie here!

I’ve a little side project I want to do with multiple math equations. However, I’m not sure the best way to go about it or what programming language would be best?

I’m trying to achieve the following:

____÷____=____÷3.33=____+4=____
____÷____=____÷2.5=____+4=____
____÷3=____x2=____÷3=3.33=+4=____

I want a simple form where I can input numbers and it splits out the answer to avoid having to do maths every 23 minutes.

It’s likely best in a app in C/C++ or something. However, due to iPhone i think it’d need to be Safari web browser.

This data doesn’t need to be stored just spitted out then cleared on form reset/page refresh as it’s one time use only.

Can provide a link which explains it better but host is not allowed.

I could use the built in iOS calculator. However, to avoid having to do all the calculations I could just type the first number and the rest is da-da! done and ready. I don’t need the answers in-between just the final number really.

So instead of doing all this on the calculator:
____÷____=____÷3.33=____+4=____

750÷3=250x2=500÷4÷3.33+4=42 - I could just type “750” into the form and it throws out “42” - Its actually 41.53 but we round up.

Any ideas?

Thanks.

For your project, you can consider using JavaScript along with HTML and CSS to create a simple web form that performs the calculations you described. JavaScript has good support for mathematical operations and can handle the logic efficiently. You can use the input fields to capture the numbers and perform the necessary calculations using JavaScript functions. The result can be displayed on the web page dynamically, allowing you to quickly obtain the final number without the need for manual calculations.

Hi there,

Many thanks for the response! I was able to get in “kinda” working using JavaScript (complete noob).

I was just unable to get a max/split system working and couldn’t figure how to add this into the JS.

Cheers!

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.