Arithmetic operators
- Last UpdatedDec 19, 2022
- 1 minute read
RTQP Engine supports arithmetic operators for all numeric data types: +, -, *, /, %.
It also supports the following operator overloads:
AnsiString Operator+(s1 AnsiString, s2 AnsiString)
String Operator+(s1 String, s2 String)
DateTime Operator+(x DateTime, y TimeSpan)
DateTime Operator+(x TimeSpan, y DateTime)
TimeSpan Operator+(x TimeSpan, y TimeSpan)
Time Operator-(x DateTime, y DateTime)
DateTime Operator-(x DateTime, y TimeSpan)
TimeSpan Operator-(x TimeSpan, y TimeSpan)
TimeSpan Operator*(x Int32, y TimeSpan)
TimeSpan Operator*(x TimeSpan, y Int32)
TimeSpan Operator/(x TimeSpan, y Int32)