Adding Scientific Functions to a Web Page Calculator
Adding Scientific Functions to a Web Page Calculator - The Global Variables (Page 4 of 4 )
var showNumCalledOnce = false;
This variable is used by the showNum(ID) and operator(ID) function..
var evalString = "";
This variable is used by the removeCalc() and operator(ID) functions.
var memVar = "";
This variable is used by the removeCalc(), showNum(ID) and operator(ID) functions.
var toClearDisplay = false;
This variable is used by the showNum(ID), operator(ID and scienceFn(ID) functions.
var baseExp = false;
This variable is used only by the operator(ID) function.
Your Commercial Project
There are a few things I have not taken into consideration. For example, the number of decimal places for some results may be too long. You have to take this and a few other things into consideration, for you commercial project.
Well, this is the end of the series. I hope you appreciated it. I thank you for reading the series.
DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.