Free Lessons
Fast Tips
Topic Index
Home   Courses   Seminars   Templates   TechHelp   Forums   Help   Contact   Join   Order   Logon  
Home > TechHelp > Directory > Access > Calculator 3 < Calculator 2 | Calculator 4 >
Calculator 3
By Richard Rost   Richard Rost on Twitter Richard Rost on LinkedIn Email Richard Rost   9 days ago

Back to Calculator 3

You have an error Upload Images   Link  
Gary James 
9 days ago
You shouldnt be adding the parentheses automatically.    If I want 6 + 3 , youre giving me (6 + 3) .
Gary James
9 days ago
Apparently my subscript number 2 got stripped off my message.    It should have said ' You shouldn't be adding the parentheses automatically.    If I want 6 + 3^2 you're giving me (6 + 3)^ 2)
Kevin Robertson
9 days ago
There is no error. The parentheses are needed for the 'X2' button.

Without them the answer to your equation is 15 which is not 9 squared.
The numbers (6 and 3) need to be summed first to get the correct answer of 81.
Gary James
9 days ago
There is an error because for the given expression, the correct answer IS 15, not 81.   That's why it should be up to the user to place his own parentheses.
Gary James
9 days ago
In mathematics the operator order of precedence is:
Parenthetic subexpressions
Multiplication and Division
Addition and Subtraction
Kevin Robertson
9 days ago

Kevin Robertson
9 days ago
If you want 6+3^2 there is an exponentiation button that will give the equation without the parentheses.
It is only the X2 button that adds the parentheses to sum up those values first before squaring the sum.
Gary James
9 days ago
In this version of Rich's calculator there IS NO EXPONENTIATION BUTTON.    By adding the parenthesis automatically the calculator changes my math expression.   I want the answer 15, NOT 81.

The code should just add the '^' and then call DoCalc to evaluate the expression.
Gary James
6 days ago
Maybe this will clear it up.   What I was saying was, if I enter the expression "6 + 3", and then press the X' key I was expecting the calculator to only square the number 3, as it was the last number (or parenthetical expression) before pressing the X' key.   Instead, what the calculator does is square the entire expression.   By squaring the entire expression I'm forced to enter the keystrokes "3" ,"X'" , "+", "6", "=" to get my answer of 15.  That seems unnatural.   That's almost like the Reverse Polish notation used in the old HP Calculators.
Kevin Robertson
6 days ago
This is the exact same functionality that the Windows Calculator has (there is no reason why the functionality of the X2 button should be different). For the calculation you want, as I said, use the exponentiation button (which is on the form). My screenshot below shows both calculations.
Kevin Robertson
6 days ago

Add a ReplyUpload an Image

Back to Calculator 3 Comments

Start a NEW Conversation
Only students may post on this page. Click here for more information on how you can set up an account. If you are a student, please Log On first. Non-students may only post in the Visitor Forum.
Subscribe to Calculator 3
Get notifications when this page is updated

Check out these other pages that may be of interest to you:

5/26/2023Hide With Macro
5/25/2023Calculator 6
5/24/2023Object Size Analyzer
5/24/2023Calculator 5
5/22/2023Calculator 4
5/19/2023Calculator 3
5/18/2023Calculator 2
5/16/2023Variable Default

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.

Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
My Account
My Courses
Lost Password
Student Databases
Change Email
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Customer Support
Web Site Tour
Consulting Services
Affiliate Program
Richard Rost
Free Lessons
Mailing List
Video Tutorials
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Terms of Sale
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    Twitter

YouTube Channel    LinkedIn
Copyright 2023 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 5/28/2023 5:18:33 PM.