Need a pd wizard to help me. I need to be able to truncate all the floats in a list to a certain decimal point. Or, if we want to be really clever, round these numbers to the nearest (truncated) decimal value.

For example, I need a way to turn **[0.835587 0.16678 0.38896, 54.3221 -4.567776(** into **[0.84 0.17 0.39 54.32 -4.57(**. I'm sure I could spend hours thinking about this but I was wondering if anyone knows of an easy object that does this.

Need a pd wizard to help me. I need to be able to truncate all the floats in a list to a certain decimal point. Or, if we want to be really clever, round these numbers to the nearest (truncated) decimal value.

For example, I need a way to turn **[0.835587 0.16678 0.38896, 54.3221 -4.567776(** into **[0.84 0.17 0.39 54.32 -4.57(**. I'm sure I could spend hours thinking about this but I was wondering if anyone knows of an easy object that does this.

**[int]** and **[wrap]** will first separate the number into integer part and floating point part, respectively. Then a bit of math trickery can do the job

Hope this helps, cheers!

Gilberto

@seb-harmonik-ar I didn't know **[list-round]**, thanks for the tip!