Constants

There are many ways to enter constants in CalcIt.

Symbol Description Value
f fempto E-15
p pico E-12
n nano E-09
u micro E-06
m mili E-03
K Kilo E+03
MEG Mega E+06
G Giga E+09
T Terra E+12

NOTE: These symbols are case sensitive. E.g. 100k is not 100K and is not accepted syntactically.

Predefined Symbolic Constants

Constant Value Comment
bsLOW, bsHIGH, bsBOTH    They are used in Binary Search Operations
e 2.71828 base of Napierian logarithms
auDEG, auRAD, auGRAD   for use in AnglesUnit  parameter
TRUE 1  
FALSE 0  
PI 3.14159265358979  
CRLF chr(13) & chr(10) Carriage return + Line feed characters
TAB chr(9) TAB character
MATCH chr(1)&chr(2)&chr(1) It is used in the replace string parameter of REReplace command
QUOT chr(39) To use single quote character (') as normal character in strings
AppInstance   Application Instance handle. It is needed in some Windows API functions
ParentWindow   In cases a Windows API function needs a parent Window Handle

The constants below are used by Form or Control properties. See Using Form variables for more information.

Constant For property
alBOTTOM, alCLIENT, alLEFT, alNONE, alRIGHT, alTOP prALIGN
bsDIALOG, bsNONE, bsSINGLE, bsSIZEABLE prBORDER
bvLOWERED, bvNONE, bvRAISED, bvSPACE prBEVELINNER, prBEVELOUTER
ssBOTH, ssHORIZONTAL, ssNONE, ssVERTICAL prSCROLLBARS
taCENTER, taLEFTJUSTIFY, taRIGHTJUSTIFY prALIGNMENT
lpABOVE, lpBELOW, lpLEFT, lpRIGHT prLABELPOSITION
clAqua, clBlack, clBlue, clDEFAULT, clFuchsia, clGray, clGreen, clLime, clMaroon, clNavy, clOlive, clPurple, clRed, clSilver, clTeal, clWhite, clYellow prCOLOR, prFONTCOLOR
crBAR, crLINE, crPIE prCHARTTYPE
mrRightBottom, mrLeftTop, mrBoth prMARKS
orHorizontal, orVertical prORIENTATION

The constants below represent Event types as they passed in the Action parameter of the local EventProc function. See Using Form variables for more information.

onCHANGE, onCLICK, OnKeyPress, onMOUSEMOVE, onTIMER, onCLOSE

NOTE: Additional user defined symbolic constants can be created  in  Constants list and locally in a code using the command Const. Additionally in Classes it is possible to declare public constants accessed from any other piece of CalcIt code through a specific syntax.