Numbers
Numbers are either integers or floating point numbers. You can declare a number using the following types:
int8 uint8 // 8-bit integer
int16 uint16 // 16-bit integer
int int32 uint32 // 32-bit integer
int64 uint64 // 64-bit integer
float // floating point
double // double floating point
So you can use the following operators to perform arithmetic operations:
+
: addition-
: subtraction*
: multiplication/
: division
See the following example:
var a : int = 123
var b : float = 1.23
var c : double = 1.2313213215648789798