Scales question

Eduardo Matus ematus.tesis at gmail.com
Fri Jan 4 08:11:13 EST 2008


Hi all...
I want to represent  a point in 800 X 600 board in a 640 X 480 board..., for
example (13, 50) in 640X480 to 800X600
so.. will be like this...

Xscale = (13 * 800)/640
Xscale = 16.25

Yscale = (50 * 600)/480
Yscale = 62.5

what happend with the decimals??? I round up or down??? or there is another
way to calculate this more accurate?

Thks...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080104/724e5da3/attachment.html>


More information about the Python-list mailing list