Skip to content

Commit 85b51fd

Browse files
committedFeb 14, 2016
Fix outdated notes in QgsExpression docs
1 parent 6453907 commit 85b51fd

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed
 

‎src/core/qgsexpression.h

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,6 @@ The expressions try to follow both syntax and semantics of SQL expressions.
6060
}
6161
\endcode
6262
63-
Possible QVariant value types:
64-
- invalid (null)
65-
- int
66-
- double
67-
- string
68-
- geometry
69-
7063
Three Value Logic
7164
=================
7265
@@ -90,15 +83,11 @@ Type conversion
9083
Operators and functions that expect arguments to be of a particular
9184
type automatically convert the arguments to that type, e.g. sin('2.1') will convert
9285
the argument to a double, length(123) will first convert the number to a string.
93-
Explicit conversion can be achieved with toint, toreal, tostring functions.
86+
Explicit conversion can be achieved with to_int, to_real, to_string functions.
9487
If implicit or explicit conversion is invalid, the evaluation returns an error.
9588
Comparison operators do numeric comparison in case both operators are numeric (int/double)
9689
or they can be converted to numeric types.
9790
98-
Arithmetic operators do integer arithmetics if both operands are integer. That is
99-
2+2 yields integer 4, but 2.0+2 returns real number 4.0. There are also two versions of
100-
division and modulo operators: 1.0/2 returns 0.5 while 1/2 returns 0.
101-
10291
Implicit sharing
10392
================
10493

0 commit comments

Comments
 (0)
Please sign in to comment.