Public repository: timo / feel

Reader

An interpreter of FEEL, written in Rust, with integrations for PostgreSQL, WASM, Lua, and Python.

1
[
2
  {
3
    "id": "1100-feel-decimal-function:001_af177e63fc:feel-decimal-function_001_af177e63fc",
4
    "expression": "decimal(1/3, 2)",
5
    "expected": 0.33,
6
    "expected_type": "number",
7
    "comparison": "f64_epsilon",
8
    "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128, and the TCK rounds non-terminating results to a fixed number of decimal places; numeric results are therefore compared with an epsilon tolerance instead of exact equality to avoid false negatives from either source.",
9
    "epsilon": 1e-08
10
  },
11
  {
12
    "id": "1100-feel-decimal-function:002_f4ed9cd487:feel-decimal-function_002_f4ed9cd487",
13
    "expression": "decimal(1/3, 2.5)",
14
    "expected": 0.33,
15
    "expected_type": "number",
16
    "comparison": "f64_epsilon",
17
    "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128, and the TCK rounds non-terminating results to a fixed number of decimal places; numeric results are therefore compared with an epsilon tolerance instead of exact equality to avoid false negatives from either source.",
18
    "epsilon": 1e-08
19
  },
20
  {
21
    "id": "1100-feel-decimal-function:003_2d50ec7ffc:feel-decimal-function_003_2d50ec7ffc",
22
    "expression": "decimal(1.5, 0)",
23
    "expected": 2.0,
24
    "expected_type": "number",
25
    "comparison": "f64_epsilon",
26
    "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128, and the TCK rounds non-terminating results to a fixed number of decimal places; numeric results are therefore compared with an epsilon tolerance instead of exact equality to avoid false negatives from either source.",
27
    "epsilon": 1e-08
28
  },
29
  {
30
    "id": "1100-feel-decimal-function:004_bb6f445d2c:feel-decimal-function_004_bb6f445d2c",
31
    "expression": "decimal(2.5, 0)",
32
    "expected": 2.0,
33
    "expected_type": "number",
34
    "comparison": "f64_epsilon",
35
    "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128, and the TCK rounds non-terminating results to a fixed number of decimal places; numeric results are therefore compared with an epsilon tolerance instead of exact equality to avoid false negatives from either source.",
36
    "epsilon": 1e-08
37
  },
38
  {
39
    "id": "1100-feel-decimal-function:005_55d33eadf6:feel-decimal-function_005_55d33eadf6",
40
    "expression": "decimal(0, 0)",
41
    "expected": 0.0,
42
    "expected_type": "number",
43
    "comparison": "f64_epsilon",
44
    "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128, and the TCK rounds non-terminating results to a fixed number of decimal places; numeric results are therefore compared with an epsilon tolerance instead of exact equality to avoid false negatives from either source.",
45
    "epsilon": 1e-08
46
  },
47
  {
48
    "id": "1100-feel-decimal-function:006_d9661e1d45:feel-decimal-function_006_d9661e1d45",
49
    "expression": "decimal(0.0, 1)",
50
    "expected": 0.0,
51
    "expected_type": "number",
52
    "comparison": "f64_epsilon",
53
    "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128, and the TCK rounds non-terminating results to a fixed number of decimal places; numeric results are therefore compared with an epsilon tolerance instead of exact equality to avoid false negatives from either source.",
54
    "epsilon": 1e-08
55
  },
56
  {
57
    "id": "1100-feel-decimal-function:007_49f7a22058:feel-decimal-function_007_49f7a22058",
58
    "expression": "decimal(0.515, 2)",
59
    "expected": 0.52,
60
    "expected_type": "number",
61
    "comparison": "f64_epsilon",
62
    "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128, and the TCK rounds non-terminating results to a fixed number of decimal places; numeric results are therefore compared with an epsilon tolerance instead of exact equality to avoid false negatives from either source.",
63
    "epsilon": 1e-08
64
  },
65
  {
66
    "id": "1100-feel-decimal-function:008_73e4f1c8b9:feel-decimal-function_008_73e4f1c8b9",
67
    "expression": "decimal(65.123456, 6)",
68
    "expected": 65.123456,
69
    "expected_type": "number",
70
    "comparison": "f64_epsilon",
71
    "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128, and the TCK rounds non-terminating results to a fixed number of decimal places; numeric results are therefore compared with an epsilon tolerance instead of exact equality to avoid false negatives from either source.",
72
    "epsilon": 1e-08
73
  },
74
  {
75
    "id": "1100-feel-decimal-function:009_398b94286e:feel-decimal-function_009_398b94286e",
76
    "expression": "decimal(n:15/7,scale:3)",
77
    "expected": 2.143,
78
    "expected_type": "number",
79
    "comparison": "f64_epsilon",
80
    "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128, and the TCK rounds non-terminating results to a fixed number of decimal places; numeric results are therefore compared with an epsilon tolerance instead of exact equality to avoid false negatives from either source.",
81
    "epsilon": 1e-08
82
  },
83
  {
84
    "id": "1100-feel-decimal-function:010_4b46e59c8b:feel-decimal-function_010_4b46e59c8b",
85
    "expression": "decimal(n:15/78*2,scale:3)",
86
    "expected": 0.385,
87
    "expected_type": "number",
88
    "comparison": "f64_epsilon",
89
    "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128, and the TCK rounds non-terminating results to a fixed number of decimal places; numeric results are therefore compared with an epsilon tolerance instead of exact equality to avoid false negatives from either source.",
90
    "epsilon": 1e-08
91
  }
92
]