~ubuntu-branches/ubuntu/saucy/mediawiki-extensions/saucy

« back to all changes in this revision

Viewing changes to dist/mediawiki-extensions-base/usr/share/doc/mediawiki-extensions/base/ParserFunctions/exprTests.txt

  • Committer: Bazaar Package Importer
  • Author(s): Romain Beauxis
  • Date: 2010-05-04 15:13:35 UTC
  • mfrom: (0.1.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20100504151335-54qeucg3ec108q28
Tags: 2.2
* Added Replaces:/Conflicts: to allow a proper upgrade.
Closes: #580066
* Fixed package descriptions.
Closes: #579667
* Patched mediawiki-extensions-fckeditor to make it work with
  php 5.3. The fix may not be perfect but at least it work.
  Not closing the bug (#579822) for now..

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
1 + 1 = 2
 
2
-1 + 1 = 0
 
3
+1 + 1 = 2
 
4
4 * 4 = 16
 
5
-4 * -4 = 4 * 4
 
6
(1/3) * 3 = 1
 
7
3 / 1.5 = 2
 
8
3 mod 2 = 1
 
9
1 or 0
 
10
not (1 and 0)
 
11
not 0
 
12
4.0 round 0; 4
 
13
ceil 4; 4
 
14
floor 4; 4
 
15
4.5 round 0; 5
 
16
4.2 round 0; 4
 
17
-4.2 round 0; -4
 
18
-4.5 round 0; -5
 
19
-2.0 round 0; -2
 
20
ceil -3; -3
 
21
floor -6.0; -6
 
22
ceil 4.2; 5
 
23
ceil -4.5; -4
 
24
floor -4.5; -5
 
25
4 < 5
 
26
-5 < 2
 
27
-2 <= -2
 
28
abs(-2); 2
 
29
4 > 3
 
30
4 > -3
 
31
5 >= 2
 
32
2 >= 2
 
33
1 != 2
 
34
not (1 != 1)
 
35
1e4 = 10000
 
36
1e-2 = 0.01
 
37
ln(exp(1));1
 
38
trunc(4.5);4
 
39
trunc(-4.5);-4