[PD] convert number to pass it as argument to canvas