is there an object or external that detects whether its input is an integer or has a fractional component as well???
-
-
Hi there, for floats you can do:
|
[t f f]
|.....\
|.......\
|.........\
[float] [int]
|........../
|......../
|....../
[==]
|
1 = integer, 0 = has fractional part
For signals, you can do:
|
[wrap~] <-- give fractional part only, between 0 and 1
|
[expr~ $v1 == 0]
|
You could make these into abstractions isinteger.pd and isinteger~.pd if you really wanted to... -
ah yeah...simple as! cheers mate