[PD] an BUG on [expr] ???

Charles Henry czhenry at gmail.com
Wed May 30 17:29:45 CEST 2012


On Wed, May 30, 2012 at 10:17 AM, Jonghyun Kim <agitato816 at gmail.com> wrote:
> dear list,
>
> Ver:
> 0.42.5-extended
> 0.43.1-extended-20120510
> on MacOS X 10.6.8
>
> I think it is a bug...

Could be... since when does Pd use integer arithmetic by default? for anything?

Workaround:
[expr (1000.0 / 60 ) * $f1]

Try making sure that one or both of your numbers are parsed as
floating point numbers and see what happens.

>
> 60
> |
> [expr (1000 / 60 ) * $f1]
> |
> 960
>
> It must be "1000", but it isn't...
>
> Am I wrong? Why I get 960??
>
> Best,
> Jong
>
>
>
> _______________________________________________
> Pd-list at iem.at mailing list
> UNSUBSCRIBE and account-management ->
> http://lists.puredata.info/listinfo/pd-list
>



More information about the Pd-list mailing list