# GB_CONSTANT

`#define GB_CONSTANT ( symbol , type , value ) ...`

Declares a constant symbol.

- symbol is the name of the constant.
- type is the type of the constant.
- value is the value of the constant.

Constant type | How to specify the type | How to specify the value | Example
--- | --- | --- | ---
Integer | `"i"` | directly the integer value | `GB_CONSTANT("Constant", "i", 1972)`
Float | `"f"` | the floating point value as a string | `GB_CONSTANT("Constant", "f", "3.1416")`
String | `"s"` | The string, between inverted commas | =GB_CONSTANT("Constant", "s", "Gambas")