> > A nice "quick" fix for these is:
> > if ( number < 0.000000001)
> > number = 0.0;
> >
> > ;-)
>
> Don't forget about negative numbers ;-)
>
> n = ((n > 0.0 && n < 0.000000001) || (n < 0.0 && n > -0.000000001)) ? 0.0 :
> n;
>
I stand corrected :-)
Cheers, -Harry
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-dev
Received on Fri Jul 16 20:15:29 2010
This archive was generated by hypermail 2.1.8 : Fri Jul 16 2010 - 20:15:29 EEST