this repo has no description
at master 29 lines 436 B view raw
1-- in.cue -- 2import "math" 3 4a: { 5 x: 32.45 6 y: int 7 y: math.Round(x) 8} 9 10b: { 11 x: 32.45 12 y: int 13 y: math.Log(x) 14} 15-- out/math -- 16Errors: 17b.y: conflicting values int and 3.479700443150099001242770375542286 (mismatched types int and float): 18 ./in.cue:11:5 19 ./in.cue:12:5 20 21Result: 22a: { 23 x: 32.45 24 y: 32 25} 26b: { 27 x: 32.45 28 y: _|_ // b.y: conflicting values int and 3.479700443150099001242770375542286 (mismatched types int and float) 29}