[chuck-users] Std.fabs() keeps giving float

herman verbaeten hverb54 at hotmail.com
Mon Mar 9 16:04:51 EDT 2020


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]:line(4): cannot resolve operator '=>' on types 'float' and 'int'..."

4400::ms => dur pduration;
int period;
pduration/1::samp => float timedur;
<<<Std.fabs(timedur) => period>>>;

kind regards,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cs.princeton.edu/pipermail/chuck-users/attachments/20200309/395f3ab1/attachment.html>

More information about the chuck-users mailing list