<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<style type="text/css">body p { margin-bottom: 0cm; margin-top: 0pt; } </style>
</head>
<body bidimailui-detected-decoding-type="UTF-8" bgcolor="#FFFFFF"
text="#000000">
<div class="moz-cite-prefix">On 4/3/2013 5:44 AM, Hanlie Pretorius
wrote:<br>
</div>
<blockquote
cite="mid:CAFpCUPpHCcfTY=s+=aXWbvvOCp+wqH=UnJLz2nTXoTB2=694QQ@mail.gmail.com"
type="cite">Hi,
<div><br>
</div>
<div>I'm using QGIS 1.8.0 on Windows 7.</div>
<div><br>
</div>
<div>I have a shapefile with some Real attribute columns (Length
19, precision 10) and I want to create a percentage column from
two of these.</div>
<div><br>
</div>
<div>So I start editing the file, open the attribute table and
open the field calculator.</div>
<div><br>
</div>
<div>Then I create a new field with the same data type (Real,
length 19, precision 10) and I use the GUI and field selectors
to enter the following expression:</div>
<div><br>
</div>
<div> "S2" / "GVA09" * 100</div>
<div><br>
</div>
</blockquote>
<br>
You probably want ("S2"/"GVA09") * 100<br>
<br>
<blockquote
cite="mid:CAFpCUPpHCcfTY=s+=aXWbvvOCp+wqH=UnJLz2nTXoTB2=694QQ@mail.gmail.com"
type="cite">
<div>This works fine until I try to save the changes or stop
editing. Then all values in the new column revert to 0 or NULL.</div>
<div><br>
</div>
<div>Does someone know what is going on?</div>
<div><br>
</div>
<div>Thanks</div>
<div>Hanlie</div>
<div><br>
</div>
<div><br>
</div>
<br>
This mail was received via Mail-SeCure System.<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Qgis-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/qgis-user">http://lists.osgeo.org/mailman/listinfo/qgis-user</a>
This mail was received via Mail-SeCure System.
</pre>
</blockquote>
<br>
<br>
</body>
</html>