879
Views
12
Comments
Solved
calculator application
Question

hai there,

I have been developing a calculator application. I facing some hardness in that,

have done with single operation i.e(123+156) but need to do for multiple operation i.e(12+12+34).

please give some idea or plan to do. i sharing my oml



calcsy.oap
2021-06-09 13-39-18
Agno Silveira
 
MVP
Solution

Ansari Durai wrote:

Agno Silveira wrote:

Hi Ansari,

I changed your app to add 3 numbers (152 + 65 + 58 for example).

File in attachment.

I hope it helps.

Regards.


 

  thanks for your answer the way you done is very easy in the screen action but who can we do multiple operations i.e(123+23*34) instead of doing multiple plus operation.

 

Right, look at the new example, I believe that now it's how you want it

:D

Cheers!


calcsyExampleOk.oml
2020-04-30 16-28-53
Daniel Almeida

Ansari Durai wrote:

hai there,

I have been developing a calculator application. I facing some hardness in that,

have done with single operation i.e(123+156) but need to do for multiple operation i.e(12+12+34).

please give some idea or plan to do. i sharing my oml



 

 You can pass the numbers as text and concat them until a valid operation occurs. Example: "8" + "9" and concat them, but you will need to check if a operation was triggered. Maybe you can use an input parameter to check if a operation was triggered. So, you can have one input parameter with the number you need and one input parameter to check the operator. Based on the operator you do what you need(you can use a Switch to do so). You will need to convert the texts in integers, use TextToInteger function. 

This is my suggestion. 

2021-06-09 13-39-18
Agno Silveira
 
MVP

Hi Ansari,

I changed your app to add 3 numbers (152 + 65 + 58 for example).

File in attachment.

I hope it helps.

Regards.


calcsyExample.oml
UserImage.jpg
Ansari Durai

Agno Silveira wrote:

Hi Ansari,

I changed your app to add 3 numbers (152 + 65 + 58 for example).

File in attachment.

I hope it helps.

Regards.


 

  thanks for your answer the way you done is very easy in the screen action but who can we do multiple operations i.e(123+23*34) instead of doing multiple plus operation.

2021-06-09 13-39-18
Agno Silveira
 
MVP
Solution

Ansari Durai wrote:

Agno Silveira wrote:

Hi Ansari,

I changed your app to add 3 numbers (152 + 65 + 58 for example).

File in attachment.

I hope it helps.

Regards.


 

  thanks for your answer the way you done is very easy in the screen action but who can we do multiple operations i.e(123+23*34) instead of doing multiple plus operation.

 

Right, look at the new example, I believe that now it's how you want it

:D

Cheers!


calcsyExampleOk.oml
2023-04-07 07-55-02
Krushna Mantri

Hi Ansari,

I made the changes in your file, please find attached hope it will help you

Cheers,

Krushna

calcsy.oml
UserImage.jpg
Ansari Durai

Krushana Mantri wrote:

Hi Ansari,

I made the changes in your file, please find attached hope it will help you

Cheers,

Krushna

 

 thanks for your answer, who can we do multiple operations instead of doing multiple plus operation.

UserImage.jpg
Lovely Priyadarshini

Hi Ansari,

I have created one with bodmas rule in a way extual calculator work. If you want you can check the logic in attached oml.

Calculator.oml
UserImage.jpg
Tejas Mhaske

Hi, I'm not able to download and use this solution. I request you to please re attach the file maybe

UserImage.jpg
Kylle Regalado

test

Calculator (1).oml
2024-11-26 02-48-53
oshima kosuke

test

Calculator_v4.oml
2024-11-26 02-48-53
oshima kosuke

test

TestCacl.oml
2024-11-26 02-48-53
oshima kosuke

test

JavascriptExamples_v1.oml
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.