Search Tools Links Login

Simple Calculator


Features store/recall/exchange, undo/redo, copy/paste, all vb math operators and vb math functions. The math engine/expression evaluator come from the MS knowledge base article Q86688. Also features tray icon on minimize, drag and drop of form without caption bar, popup options menu with usage info, undo/redo history to twenty levels, auto clear when new expression, always-on-top option and more.

This calculator recognizes the following math functions that you can type directly in or select from the popup menu:

ABS, ATN, COS, EXP, FIX, INT, LOG, RND, SIN, SNG, SQR, and TAN

This calculator recognizes the following operators and sub-expressions, listed by precedence from highest to lowest:

The precedence of unary minus "-" and operator "NOT" indicate the highest possible precedence of their operand. Unary minus and "NOT" may occur in an expression of any precedence.

The following expressions illustrate the precedence rules for unary minus and "NOT".

Expression Value
-1 ^ 2 -1
-(1 ^ 2) -1
(-1) ^ 2 1
2 ^ -2 .25
NOT 0 = 1 -1
NOT (0 = 1) -1
(NOT 0) = 1 0
NOT 0 AND 1 1
(NOT 0) AND 1 1
NOT (0 AND 1) -1

About this post

Posted: 2018-01-27
By: RDE
Viewed: 340 times

Categories

Visual Basic 6

Attachments

Calculator.zip
Posted: 1/27/2018 6:15:13 AM
Size: 10,932 bytes


Loading Comments ...

Comments

No comments have been added for this post.

You must be logged in to make a comment.