[PD] expr bug

Tim Blechmann TimBlechmann at gmx.net
Sun Jun 6 19:19:33 CEST 2004


> > error: expr: syntax error
> >  expr 1e-04
> > ... couldn't create
> > 
> > any hints?
> 
> I think. this is because Pd converts small numbers to the exponential
> notation automatically (try to create a float with [0.0001] for
> example) which isn't understood by expr because it takes "-" for
> "minus" and then doesn't cope with the "1e". 
not exactly ... you can enter |expr 1e-3| without any problems, but you
can't enter |expr 1e-4|...

> Hint: Try [expr 1/10000] instead. 
well, that works, but i don't want do add the overhead of a division
(call me mad) ... i used kjetils lovely k_cext instead...

cheers...

-- 
 Tim                          mailto:TimBlechmann at gmx.de
                              ICQ: 96771783
--
The only people for me are the mad ones, the ones who are mad to live,
mad to talk, mad to be saved, desirous of everything at the same time,
the ones who never yawn or say a commonplace thing, but burn, burn,
burn, like fabulous yellow roman candles exploding like spiders across
the stars and in the middle you see the blue centerlight pop and
everybody goes "Awww!"
                                                          Jack Kerouac





More information about the Pd-list mailing list