<div dir="ltr">Thanks Alex, it cleared some of my questions. Before I thought that the width is only for the integer and do not consider the number of decimal places.<div><br></div><div>-Leo</div></div><div class="gmail_extra">

<br><br><div class="gmail_quote">On Wed, Apr 30, 2014 at 12:22 AM, Alex Mandel <span dir="ltr"><<a href="mailto:tech_dev@wildintellect.com" target="_blank">tech_dev@wildintellect.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Close, I believe width is total number of characters. And yes precision<br>
is just the number of characters to the right of the decimal.<br>
so 12 w 5 p means 7char.5char<br>
Which is why I suggested 12 w 8 p<br>
-<a href="tel:120.12345678" value="+12012345678">120.12345678</a><br>
38.12345678<br>
<br>
I don't recall if a negative counts as a char, I don't think it does on<br>
a real. 8 after the decimal is a common amount of precision, the last<br>
couple of digits take you down to meter/submeter. I'd have to look up<br>
exactly where it gets you I don't recall right now.<br>
<br>
Thanks,<br>
Alex<br>
<div><div class="h5"><br>
On 04/28/2014 10:23 PM, Leo Kris Palao wrote:<br>
> Hi Alex,<br>
><br>
> Thanks for you comment. I have already solved the issue. When I first<br>
> created the field I set the width to 3 and precision to 5 - this is where<br>
> my values were rounded to whole number. But when I tried it the second<br>
> time, I leave the width to its default value of 12 and adjusted the<br>
> precision to 5 my value were not rounded (i got the correct values). The<br>
> width supposed to be the number of characters for the integer and precision<br>
> is the decimal places.<br>
><br>
> Thanks,<br>
> -Leo<br>
><br>
><br>
> On Tue, Apr 29, 2014 at 11:29 AM, Alex Mandel <<a href="mailto:tech_dev@wildintellect.com">tech_dev@wildintellect.com</a>>wrote:<br>
><br>
>> On 04/28/2014 06:54 PM, Leo Kris Palao wrote:<br>
>>> Dear QGIS users,<br>
>>><br>
>>> Good day!<br>
>>><br>
>>> I want to get the longitude and latitude coordinate values of my points.<br>
>> I<br>
>>> used Geometry > $x and Geometry > $y to derive longitude and latitude of<br>
>> my<br>
>>> points. It give me correct values but when I exit editing mode the values<br>
>>> were rounded to whole number. For instance:<br>
>>><br>
>>> my Lon values is 95.94592 but when I exit editing mode this value is<br>
>>> converted to 95.00000<br>
>>><br>
>>> Thanks in advance for any help.<br>
>>><br>
>>> -Leo<br>
>><br>
>> New field or existing field?<br>
>> Hopefully with a new field you picked Text, and changed the maximum<br>
>> width. That is assuming you wanted to get 38.345 95.945 etc<br>
>> If you wanted to fields, then use Decimal Number(real), and do each one<br>
>> at a time. Now when you pick real, you have set the Precision. Precision<br>
>> is the number of values after the decimal (to the right). Typical GIS is 8.<br>
>><br>
>> So to store 1 coordinate:<br>
>> Decimal Field (real)<br>
>> Width 12<br>
>> Precision 8<br>
>><br>
>> Now if it's an existing field, just make a new field because it sounds<br>
>> like the old field isn't set right.<br>
>><br>
>> If that doesn't help, can you tell use what version of QGIS and what<br>
>> operating system(including version).<br>
>><br>
>> Thanks,<br>
>> Alex<br>
>><br>
><br>
><br>
><br>
</div></div>> _______________________________________________<br>
> Qgis-user mailing list<br>
> <a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
><br>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><div><div dir="ltr" style="font-family:arial;font-size:small"><div><b>LEO KRIS MARIANO PALAO</b></div><div>Social Sciences Division</div><div>International Rice Research Institute<br>

Website: <a href="http://www.irri.org/" style="color:rgb(17,85,204)" target="_blank">www.irri.org</a><div>Mobile #: <font color="#1155cc">0932-847-6644</font></div></div></div></div><input type="hidden"><input type="hidden"><div>

</div></div>
</div>