[chuck-users] Float assignment totally unexpected

Brian Sorahan bsorahan at haivision.com
Wed Mar 26 10:41:07 EDT 2014


That's really bizarre

brian at brian-work-laptop ~ $ cat float-issue.ck
2.3 => float a;
<<< a >>>;
brian at brian-work-laptop ~ $ chuck float-issue.ck
2.300000 :(float)

I'm on Mint 15 and

brian at brian-work-laptop ~ $ chuck --version

chuck version: 1.3.3.0 (chimera)
   linux (alsa) : 64-bit



On Wed, Mar 26, 2014 at 8:41 AM, alfredo <freddi.blues at gmail.com> wrote:

> Hello everybody!
>
> I'm running miniaudicle for ubuntu 13.10.
>
> everything compiles and even sound works.
>
> i'm just facing an unexpected behaviors with floats.
>
> <<< 12.2 >>> prints 12.000000 : (float)
> <<< 1.2 * 2.2 >>> prints 2.00000 : (float)
>
> 2.3 => float a;
> <<< a >>> prints 2.000000 : (float)
>
> i really want to solve this out as soon as possible.
>
> any advices? is a gcc/g++ issue? is chuck language issue?
>
>
>
> _______________________________________________
> chuck-users mailing list
> chuck-users at lists.cs.princeton.edu
> https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cs.princeton.edu/pipermail/chuck-users/attachments/20140326/4a3a8ab3/attachment.html>


More information about the chuck-users mailing list