[Qgis-developer] A stupid problem with python, that is making me more stupid :)

Enzo Cocca enzo.ccc at gmail.com
Tue Mar 11 05:02:34 PDT 2014


hi, roberto
you use a integer value so 36.30 is not integer. try with real?

enzo


2014-03-11 12:56 GMT+01:00 Geo DrinX <geodrinx at gmail.com>:

> Hello All,
>
>
> as in object,  I had an error from python, with my source code, that I do
> not understand
>
>
>     CamNick = 90 - int(pitch)
> ValueError: invalid literal for int() with base 10: '36.30'
>
>
> Somebody can help me to understand why   "36.30"  is not  good to reurn an
> int value ?
>
> For me, is a mistery.  :(
>
>
> Roberto
>
>
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>



-- 
Enzo Cocca (PhD Candidate)
Research Fellow
Università di Napoli "L'Orientale"
mail: enzo.ccc at gmail.com
cell: +393495087014
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20140311/4b42cbce/attachment.html>


More information about the Qgis-developer mailing list