> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Steve Crane
> Sent: 16 October 2004 00:01
> To: [EMAIL PROTECTED]
> Subject: [Gimp-user] Scheme question

> At the moment I am trying to work out how to do integer 
> division.  I want to draw guides mapping the rule of thirds 
> and want to ensure that I get an integer result when I divide 
> the image height and width by 3.
> How would I do this?
> 
> Thanks
> --

There is no internal function to convert to integer, but the following will
do it:
(define (floor x) (- x (fmod x 1)))
_______________________________________________
Gimp-user mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user

Reply via email to