# How would you expect a standard calculator to work?

**URL:** <https://forum.kirupa.com/t/how-would-you-expect-a-standard-calculator-to-work/311802>\
**Category:** flash\
**Created:** [July 16, 2010, 5:09pm UTC](https://forum.kirupa.com/t/how-would-you-expect-a-standard-calculator-to-work/311802 "2010-07-16T17:09:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dpcdpc11](https://avatars.discourse-cdn.com/v4/letter/d/cc9497/32.png) [@dpcdpc11](https://forum.kirupa.com/u/dpcdpc11)\
**Post date:** [July 16, 2010, 5:09pm UTC](https://forum.kirupa.com/t/how-would-you-expect-a-standard-calculator-to-work/311802/1 "2010-07-16T17:09:51Z")

</div>

[FONT=&quot]Hey guys… I was thinking of developing a free online calculator in flash.[/FONT]  
[FONT=&quot]It would be a standard calculator with basic functions like “+”, “-”, "_" etc. and an advanced calculator with more functions which would be similar to the scientific pocket calculator.[/FONT]  
[FONT=&quot] [/FONT]  
[FONT=&quot]And I have a dilemma regarding the standard calculator. It’s about the way it does the calculations.[/FONT]  
[FONT=&quot]How would you expect a basic calculator (not an advanced one) to calculate this expression:[/FONT]  
[FONT=&quot]1+2_3 equals 7 or 9?[/FONT]  
[FONT=&quot]On paper the result is clearly 7 but basic pocket calculator calculates the expression in line, unaware of the higher priority operators and give you 9 as a result to the expression above.[/FONT]  
[FONT=&quot] [/FONT]  
[FONT=&quot]In the advanced version of the online flash calculator this expression would equal 7 but I have doubts about what people expect from a basic calculator.[/FONT]  
[FONT=&quot] [/FONT]  
[FONT=&quot]So what’s you’re take on this?[/FONT]
