9 Mar
2020
9 Mar
'20
4:07 p.m.
$ is the explicit cast operator -- see
https://chuck.cs.princeton.edu/doc/language/oper.html
For example, Std.fabs( timedur ) $ int => period;
~Jack
On Mon, Mar 9, 2020 at 4:05 PM herman verbaeten
Hi,
In your archives i found a way to cast dur as float. But every attempt to convert float to int failes somehow... Error message:* "[test dur-int.ck http://dur-int.ck]:line(4): cannot resolve operator '=>' on types 'float' and 'int'..."*
4400::ms => dur pduration; int period; pduration/1::samp => float timedur; <<
period>>>; kind regards,
Herman _______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users