[PD] Expr does not play well with ints?

B. Bogart ben at ekran.org
Mon Jul 23 21:29:39 CEST 2007


Hey all,

So I've been doing lots of calculations with expr and creation
arguments, and it seems to send an int when it should send a float way
too often:

[expr 8 / 20]

returns 0!!!

See attached patch.

Have I lost my mind? Is my machine going crazy? or is expr actually
doing what I see here?

I cringe at the idea of doing these calculations with separate [*] [/]
[+] [-] objects...

Thanks,
B. Bogart

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: expr-ints.pd
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20070723/c62f2a8a/attachment.txt>


More information about the Pd-list mailing list