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
On Mon, 23 Jul 2007, B. Bogart wrote:
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!!!
Have I lost my mind? Is my machine going crazy? or is expr actually
doing what I see h
Mathieu, are you really able to put 8.0 in an expr argument? In my PD
(.39 ubuntu package) the 8.0 gets turned into 8 and remains an int.
Hmm?
B. Bogart
Mathieu Bouchard wrote:
> On Mon, 23 Jul 2007, B. Bogart wrote:
>
>> So I've been doing lots of calculations with expr and creation
>> argumen
Ah! [expr float(8) / 6] does the trick, I'm damn happy there is float()
in there!!!
Thanks all,
B. Bogart
B. Bogart wrote:
> Mathieu, are you really able to put 8.0 in an expr argument? In my PD
> (.39 ubuntu package) the 8.0 gets turned into 8 and remains an int.
>
> Hmm?
>
> B. Bogart
>
> M
On Mon, 23 Jul 2007, B. Bogart wrote:
Mathieu, are you really able to put 8.0 in an expr argument? In my PD
(.39 ubuntu package) the 8.0 gets turned into 8 and remains an int.
Ah! [expr float(8) / 6] does the trick, I'm damn happy there is float()
in there!!!
if you write any character next to
Ah, I see now.
I could not use that method, since 8/6 was an example, and I wanted to
do $8 / $6, so treating "$8" as a symbol would not have helped.
.b.
Mathieu Bouchard wrote:
> On Mon, 23 Jul 2007, B. Bogart wrote:
>>> Mathieu, are you really able to put 8.0 in an expr argument? In my PD
>>>
Hallo,
B. Bogart hat gesagt: // B. Bogart wrote:
> Ah, I see now.
>
> I could not use that method, since 8/6 was an example, and I wanted to
> do $8 / $6, so treating "$8" as a symbol would not have helped.
It does work, unless you're using an old, pre-0.40 version of Pd.
Ciao
--
Frank Barkne
On Tue, 24 Jul 2007, B. Bogart wrote:
Ah, I see now.
I could not use that method, since 8/6 was an example, and I wanted to
do $8 / $6, so treating "$8" as a symbol would not have helped.
Ah, caution with that: literals like 8 6 8.0 6.0 and pd's substitutors ($1
$2 $3) work in the same way in
Hallo,
Frank Barknecht hat gesagt: // Frank Barknecht wrote:
> Hallo,
> B. Bogart hat gesagt: // B. Bogart wrote:
>
> > Ah, I see now.
> >
> > I could not use that method, since 8/6 was an example, and I wanted to
> > do $8 / $6, so treating "$8" as a symbol would not have helped.
>
> It does w
On Wed, 25 Jul 2007, Frank Barknecht wrote:
Frank Barknecht hat gesagt: // Frank Barknecht wrote:
B. Bogart hat gesagt: // B. Bogart wrote:
It does work, unless you're using an old, pre-0.40 version of Pd.
Ah, sorry, I should have tested it: [expr $1/$2] doesn't work. :(
Huh? [expr $1/$2] wor
Hallo,
Mathieu Bouchard hat gesagt: // Mathieu Bouchard wrote:
> On Wed, 25 Jul 2007, Frank Barknecht wrote:
> >Frank Barknecht hat gesagt: // Frank Barknecht wrote:
> >>B. Bogart hat gesagt: // B. Bogart wrote:
> >>It does work, unless you're using an old, pre-0.40 version of Pd.
> >Ah, sorry, I
On Wed, 25 Jul 2007, Frank Barknecht wrote:
Mathieu Bouchard hat gesagt: // Mathieu Bouchard wrote:
Huh? [expr $1/$2] works here on Miller's 0.40.
I mean, it doesn't create all the time, see attached.
It won't expand $1/$2 to 0/0 or anything else that [expr] could make sense
of, because it's
12 matches
Mail list logo