A Constant is a symbolic name that captures a value does not change while a program is running and is usually used for capturing initialization or site specific parameters. Constants are in contrast with variables, which are symbols represent different values that can change during the execution of program.
A constant can be a:
25
, 3.6
, 3.14
, etc.'a
', '$
', '_
', etc.“Bitcoin”
, “Hyperledger”
, “Medical Records”
, etc.DEFINE CONSTANT <ConstantName> AS <SimpleExpression>;
DEFINE CONSTANT PRECISION AS 2 DEFINE CONSTANT Version AS 3.5.1 DEFINE CONSTANT Currency_Symbol AS '§' DEFINE CONSTANT Currency_Name AS "My Coin"