size = [200.0, 400.0]
return size[0]/size[1]

Jarred Bishop pisze:
> Hi, this is driving me crazy. I'm sure there is a VERY simple solution
> but can't seem to find it. thanks for you help.
>
> if I have
>
>       size = 200, 400
>       return size[0]/size[1]
>
> it returns '0'. which isnt much help. how do i get '0.5' or '.5' ?
>
> Thanks.
> >
>
>   

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to