Needing help with change ip

Feb 5, 2011 at 7:39pm

Needing help with change ip

hi everybody, i would like to know if there is anyway to change the ip in the patch i have created (see the image)

thanxx!

[attachment=153234,1773]

Attachments:
  1. Changeip.JPG
#54817
Feb 5, 2011 at 8:08pm

sprintf is good for this sort of thing:

– Pasted Max Patch, click to expand. –
#197390
Feb 5, 2011 at 8:47pm

or
pak i . i . i . i
and then sprintf

:)

#197391
Feb 5, 2011 at 9:28pm

thanksss guys!!!!!

#197392
Feb 5, 2011 at 9:36pm

one question more.. in the object “sprintf %ld.%ld.%ld.%ld”, what is the meaning of “%ld”???

#197393
Feb 5, 2011 at 10:45pm

%ld represent an integer. You can also use the combine object for this, maybe it’s easier.

– Pasted Max Patch, click to expand. –
#197394
Feb 5, 2011 at 10:53pm

the ld stands for ‘long decimal’ (I think!) and is used for integers, if you were using floating point numbers you would use %f

#197395
Feb 6, 2011 at 3:06am

Very curious emmanuel! thanxx for everybody. Scatalogic thanx for your explanation.

#197396

You must be logged in to reply to this topic.