blob: 3473dccd1056baf6555cb99dc2e2b7504e4718e8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
import QtQuick 2.0
Item {
property real test1: Math.floor(i1.p1)
property real test2: Math.floor(i1.p2)
property real subtest3: Math.floor()
property real subtest4: Math.floor(i1.p4)
property bool test3: isNaN(subtest3)
property bool test4: isNaN(subtest4)
property real subtest5: Math.floor(i1.p5)
property bool test5: isNaN(subtest5)
property real test6: Math.floor(i1.p6)
property real subtest7: Math.floor(i1.p7)
property real subtest8: Math.floor(i1.p8)
property bool test7: subtest7 === Number.NEGATIVE_INFINITY
property bool test8: subtest8 === Number.POSITIVE_INFINITY
property real test9: Math.floor(i1.p9)
property real subtest10: Math.floor(i1.p10)
property bool test10: subtest10 === 0 && (1/subtest10) === -Infinity
QtObject {
id: i1
property real p1: -3.7
property real p2: 4.4
property real p4: Number.NaN
property string p5: "hello world"
property string p6: "82.6"
property real p7: Number.NEGATIVE_INFINITY
property real p8: Number.POSITIVE_INFINITY
property real p9: 0
property real p10: -0
}
}
|