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

Nathan Woodrow madmanwoo at gmail.com
Tue Mar 11 05:03:43 PDT 2014


int(float('36.30'))


On Tue, Mar 11, 2014 at 10:02 PM, Enzo Cocca <enzo.ccc at gmail.com> wrote:

> 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
>
>
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20140311/ae64ca0f/attachment.html>


More information about the Qgis-developer mailing list