rounding in gimp

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

rounding in gimp

Daniela Dyrynková
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
_______________________________________________
Gimp-user mailing list
[hidden email]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user
Reply | Threaded
Open this post in threaded view
|

Re: rounding in gimp

Sven Neumann
Hi,

Daniela Dyrynková <[hidden email]> 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

_______________________________________________
Gimp-user mailing list
[hidden email]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user