i tried on different machines (32bit /64bit), changed to debian. unluckly got the same result.

i'm using miniaudicle 1.3.1 and chuck source 1.3.3

my gcc version is 4.8.1
my g++ version is 4.8.1


2014-03-26 15:41 GMT+01:00 Brian Sorahan <bsorahan@haivision.com>:
That's really bizarre

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

I'm on Mint 15 and

brian@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@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@lists.cs.princeton.edu
https://lists.cs.princeton.edu/mailman/listinfo/chuck-users



_______________________________________________
chuck-users mailing list
chuck-users@lists.cs.princeton.edu
https://lists.cs.princeton.edu/mailman/listinfo/chuck-users