Dahlia fixed point comparison
cgyurgyik opened this issue · 2 comments
cgyurgyik commented
When trying to do Dahlia fixed point comparison:
let zero: ufix<1, 1> = 0.0;
let one: ufix<1, 1> = 1.0;
if (one > zero) { }
Results in:
Stage 'dahlia' had a non-zero exit code.
---------------- stderr ----------------
[Type error] [Line 4, Column 9] > expected float, integer, rational, or double, received: ufix<1,1> and ufix<1,1>.
if (one > zero) { }
^
cgyurgyik commented
Thanks :)
cgyurgyik commented
I've also added a primitive for fixed_p_std_gt
to std.lib in Futil #282