would really appreciate help about what exactly @as does ?
specifically why does this work ?
const t1: u8 = 45;
_ = @as(f32,t1);
its able to convert u8 -> f32 using @as
but when I try to do
const r:f32 = @divExact( @as(f32,j),@as(f32,255));
I get an error : error: expected type 'f32', found 'u8'
this problem seems to be fixed by using @floatFromInt but isnt @as supposed to do the conversion ?