File: decimal.txtar

package info (click to toggle)
golang-github-cue-lang-cue 0.14.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 19,644 kB
  • sloc: makefile: 20; sh: 15
file content (65 lines) | stat: -rw-r--r-- 951 bytes parent folder | download | duplicates (2)
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
-- stats.txt --
Leaks:  0
Freed:  11
Reused: 8
Allocs: 3
Retain: 0

Unifications: 11
Conjuncts:    11
Disjuncts:    11

-- in.cue --
out: [
  123.45 + 987.65,
  123.45 - 987.65,
  123.45 * 987.65,
  123.45 / 987.65,

  // whole integers
  2 + 3,
  7 - 1,
  5 * 10,
  20 / 4,

  1 / 3, // fill all digits
]
-- out/compile --
--- in.cue
{
  out: [
    (123.45 + 987.65),
    (123.45 - 987.65),
    (123.45 * 987.65),
    (123.45 / 987.65),
    (2 + 3),
    (7 - 1),
    (5 * 10),
    (20 / 4),
    (1 / 3),
  ]
}
-- out/eval/stats --
Leaks:  0
Freed:  11
Reused: 8
Allocs: 3
Retain: 0

Unifications: 11
Conjuncts:    11
Disjuncts:    11
-- out/eval --
(struct){
  out: (#list){
    0: (float){ 1111.10 }
    1: (float){ -864.20 }
    2: (float){ 121925.3925 }
    3: (float){ 0.1249936718473143320002025008859414 }
    4: (int){ 5 }
    5: (int){ 6 }
    6: (int){ 50 }
    7: (float){ 5.0 }
    8: (float){ 0.3333333333333333333333333333333333 }
  }
}