RSS/Atom feed Twitter
Site is read-only, email is disabled

rounding in gimp

This discussion is connected to the gimp-user-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

2 of 2 messages available
Toggle history

Please log in to manage your subscriptions.

rounding in gimp Daniela Dyrynková 07 Jun 09:42
  rounding in gimp Sven Neumann 09 Jun 01:40
Daniela Dyrynková
2005-06-07 09:42:21 UTC (almost 19 years ago)

rounding in gimp

Can I ask how do I round numbers in gimp? Is there such a Script-Fu function? Or should i write it? I have trouble determining what functions exists in S-F and what not.

Merci

Danielle

Sven Neumann
2005-06-09 01:40:38 UTC (almost 19 years ago)

rounding in gimp

Hi,

Daniela Dyrynková writes:

Can I ask how do I round numbers in gimp? Is there such a Script-Fu function? Or should i write it? I have trouble determining what functions exists in S-F and what not.

(trunc (+ value 0.5)) should do the trick for positive numbers. There might even be a round function available. Did you check the SIOD reference?

Sven