Sfairadora

  • Reference Guide

Multiplication

x * y
num * str
The operator computes a product of two values of the types Int, Int8, Int16, Int64, Byte, Word, Dword, Qword, and Real. The result is of the same type as the parameters.
When the result of integer multiplication exceeds maximum value of the given type the result overflows. The integer overflow is not considered an error. E.g. [Byte]5*[Byte]100 yields result 244. The real number overflow is an error.
The latter variant serves to replicate strings (the type String or Rich_string). The result is of the corresponding string type. E.g. 5 * "Abc" yields result "AbcAbcAbcAbcAbc". If the num parameter is negative or exceeds 1000, operator returns an error.