Yes, there are, just that they are not documented in the reference patches. Help on their menu context opens otherbinops-help.pd, which doesn't mention them. [div 1] will give the integer part. [mod 1] won't return decimal part because it's integer mod, but I still can substract integer part from the original number. Thank you very much. Cheers, Carlos.
i don't have pd on this machine, so i can't test for you...but
if i recall correctly, there are both mod and div objects.
best,
p
> -------- Original Message --------
> Subject: [PD] Integer part
> From: "Carlos Pita" < carlosjosepita@gmail.com>
> Date: Thu, June 28, 2007 11:47 pm
> To: pd-list@iem.at
>
> Hi all,
>
> how do I get the integer and decimal part of a pd float?
> I see that there is an [int] object but it works as a memory too, a
> bit more
> of what I need.
> Maybe I could use [expr~].
> Is there any standard or common way of doing this?
>
> Thank you in advance.
> Cheers,
> Carlos<hr>_______________________________________________
> PD-list@iem.at mailing list
> UNSUBSCRIBE and account-management ->
> http://lists.puredata.info/listinfo/pd-list