returning coordinates of canvas objects in integer values
- From: sd <shamild@xxxxxxxxxxx>
- Date: Tue, 29 Apr 2008 21:30:05 -0700 (PDT)
Greetings,
I noticed when I run my script on a screen resolution 1440x900 and get
coordinates of objects (ex.: .w coords tag1) I get floating numbers
ending with large number of decimals 549.99999999999999 whereas a
screen with resolution 1024x768 gives me numbers such as 550.0
This causes problems for me because I have to look for objects in
certain locations and 549.9999999999 throws things off. Is there a way
to neatly get object coordinates in integers or do I have to keep
converting them myself each time they are returned by the [coords]
command?
Thanks,
sd/
.
- Follow-Ups:
- Prev by Date: How to parse this plz tell me!!!
- Next by Date: Re: channels and null end of messages
- Previous by thread: How to parse this plz tell me!!!
- Next by thread: Re: returning coordinates of canvas objects in integer values
- Index(es):
Relevant Pages
|