<div dir="ltr"><div><div><div>Hi,<br></div>Francesc, I may be wrong since I couldn't find the reference in QGIS docs nor elsewhere but I'm not sure you can have a field width at 3 and decimals at 3. The width is supposed to be the total of all digits, meaning the digits before the comma and those after the comma. In your case you should have width 6 and precision 3.<br></div>Try with this and let us know.<br><br></div>DelazJ<br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-07-10 19:39 GMT+02:00 José Antonio Barreña Cayuela <span dir="ltr"><<a href="mailto:jabarcay@gmail.com" target="_blank">jabarcay@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    Perhaps the problem is the operating system or program language
    (spanish, english....).<br>
    <br>
    <div>El 10/07/15 a las 18:52, Francesc Cañas
      escribió:<br>
    </div><div><div class="h5">
    <blockquote type="cite">
      <div dir="ltr">No, it's not integer or float with no decimals.
        They don't dissapear when I save, they turn to 0 but with the
        same accuracy intended. If I create a field with 3 width and 3
        decimals, while operating displays 123.321 but as soon as I save
        it turns to 123.000, the same for 4 decimals and so on.
        123.0000. It's driving me crazy.   </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">2015-07-08 10:53 GMT-05:00 Nicolas
          Cadieux <span dir="ltr"><<a href="mailto:nicolas.cadieux@archeotec.ca" target="_blank">nicolas.cadieux@archeotec.ca</a>></span>:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <p dir="ltr">Hi,<br>
              Maybe you creating an integer field and not a float field
              (or a float field with no decimals) by mistake?</p>
            <p dir="ltr">Nicolas Cadieux M.Sc.<br>
              Les Entreprises Archéotec inc. <br>
              8548, rue Saint-Denis Montréal H2P 2H2<br>
              Téléphone: 514.381.5112  Fax: 514.381.4995<br>
              <a href="http://www.archeotec.ca" target="_blank">www.archeotec.ca</a></p>
            <div class="gmail_quote">
              <div>
                <div>On Jul 8, 2015 11:19 AM, "Francesc Cañas
                  [via OSGeo.org] " <<a href="http:///user/SendEmail.jtp?type=node&node=5214893&i=0" rel="nofollow" link="external" target="_blank">[hidden
                    email]</a>> wrote:<br type="attribution">
                </div>
              </div>
              <blockquote style="border-left:2px solid #cccccc;padding:0 1em">
                <div>
                  <div>
                    <div dir="ltr">
                      <div>
                        <div>
                          <div>Hi,</div>
                          <div>Several times when I've created a float
                            field with the calculator, while it isn't
                            saved, it displays the decimals, but as soon
                            as I save the changes, all of them change to
                            0. Why this happen? It seems random to me,
                            in some shp work well but in others doesn't.</div>
                          <div><br>
                          </div>
                          <div>Thanks a lot.</div>
                        </div>
                        <div><br>
                        </div>
                        -- <br>
                        <div>
                          <div dir="ltr"><u><a href="http://francescsig.info/" rel="nofollow" link="external" target="_blank">Francesc Cañas</a></u>
                            <div><font color="#222222"><a href="http://francescSIG.info" rel="nofollow" link="external" target="_blank">Ambientoleg SIG</a><a href="http://aixonoesunblog.blogspot.com" rel="nofollow" link="external" target="_blank"><br>
                                </a></font>
                              <div><br>
                                <div><br>
                                </div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                    <br>
                  </div>
                </div>
                _______________________________________________
                <br>
                Qgis-user mailing list
                <br>
                <a
                href="/user/SendEmail.jtp?type&#61;node&amp;node&#61;5214880&amp;i&#61;0">[hidden
                email]
                <br>
                <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" rel="nofollow" link="external" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a>
                <div style="margin-top:1em;color:#666666;font-size:11px">
                  <a href="http://kikocanas.tk" rel="nofollow" link="external" target="_blank">http://kikocanas.tk</a>
                </div>
                <br>
                <br>
                <hr noshade size="1">
                <div style="color:#444;font:12px 'tahoma','geneva','helvetica','arial',sans-serif">
                  <div style="font-weight:bold">If you reply to this
                    email, your message will be added to the discussion
                    below:</div>
                  <a href="http://osgeo-org.1560.x6.nabble.com/Deleted-decimals-in-field-calculator-tp5214880.html" rel="nofollow" link="external" target="_blank">http://osgeo-org.1560.x6.nabble.com/Deleted-decimals-in-field-calculator-tp5214880.html</a>
                </div>
                <div style="color:#666;font:11px 'tahoma','geneva','helvetica','arial',sans-serif;margin-top:0.4em;line-height:1.5em">
                  To start a new topic under Quantum GIS - User, email <a href="mailto:ml-node%2Bs1560n4125267h38@n6.nabble.com" target="_blank"></a><a href="mailto:ml-node+s1560n4125267h38@n6.nabble.com" target="_blank">ml-node+s1560n4125267h38@n6.nabble.com</a>
                  <br>
                  To unsubscribe from Quantum GIS - User, <a href="<a href="http://osgeo-org.1560.x6.nabble.com/template/NamlServlet.jtp?macro&#61;unsubscribe_by_code&amp;node&%2361;4125267&amp;code&%2361;bmljb2xhcy5jYWRpZXV4QGFyY2hlb3RlYy5jYXw0MTI1MjY3fDYzNDQ4MjQxNg&%2361;&%2361" target="_blank"></a><a href="http://osgeo-org.1560.x6.nabble.com/template/NamlServlet.jtp?macro&#61;unsubscribe_by_code&amp;node&%2361;4125267&amp;code&%2361;bmljb2xhcy5jYWRpZXV4QGFyY2hlb3RlYy5jYXw0MTI1MjY3fDYzNDQ4MjQxNg&%2361;&%2361" target="_blank">http://osgeo-org.1560.x6.nabble.com/template/NamlServlet.jtp?macro&#61;unsubscribe_by_code&amp;node&#61;4125267&amp;code&#61;bmljb2xhcy5jYWRpZXV4QGFyY2hlb3RlYy5jYXw0MTI1MjY3fDYzNDQ4MjQxNg&#61;&#61</a>;">click
                  here.<br>
                  <a href="<a href="http://osgeo-org.1560.x6.nabble.com/template/NamlServlet.jtp?macro&#61;macro_viewer&amp;id&%2361;instant_html%21nabble%3Aemail.naml&amp;base&%2361;nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&amp;breadcrumbs&%2361;notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" target="_blank">http://osgeo-org.1560.x6.nabble.com/template/NamlServlet.jtp?macro&#61;macro_viewer&amp;id&#61;instant_html%21nabble%3Aemail.naml&amp;base&#61;nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&amp;breadcrumbs&#61;notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml</a>"
                  style="font:9px serif">NAML </div>
              </blockquote>
            </div>
            <br>
            <hr align="left" width="300">
            View this message in context: <a href="http://osgeo-org.1560.x6.nabble.com/Deleted-decimals-in-field-calculator-tp5214880p5214893.html" target="_blank">Re: Deleted decimals in field calculator</a><br>
            Sent from the <a href="http://osgeo-org.1560.x6.nabble.com/Quantum-GIS-User-f4125267.html" target="_blank">Quantum GIS - User mailing list archive</a>
            at Nabble.com.<br>
            <br>
            _______________________________________________<br>
            Qgis-user mailing list<br>
            <a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
            <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
          </blockquote>
        </div>
        <br>
        <br clear="all">
        <div><br>
        </div>
        -- <br>
        <div>
          <div dir="ltr"><u><a href="http://francescsig.info/" target="_blank">Francesc
                Cañas</a></u>
            <div><font color="#222222"><a href="http://francescSIG.info" target="_blank">Ambientoleg
                  SIG</a><a href="http://aixonoesunblog.blogspot.com" target="_blank"><br>
                </a></font>
              <div><br>
                <div><br>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>_______________________________________________
Qgis-user mailing list
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a></pre>
    </blockquote>
    <br>
    </div></div><span class="HOEnZb"><font color="#888888"><div>-- <br>
      
      
      
      <table border="0" cellpadding="0" cellspacing="10" width="100%">
        <tbody>
          <tr>
            <td><br>
            </td>
          </tr>
          <tr>
            <td style="padding:10px" align="left" valign="top">
              <p><font style="font-size:18px" face="Arial, Helvetica,
                  sans-serif" color="#1c2927">José Antonio Barreña
                  Cayuela</font><br>
                <font face="Arial, Helvetica, sans-serif" color="#616b68"><em style="font-size:12px">Biólogo
                    (botánico). Servicios Medioambientales</em></font><br>
                <font style="font-size:12px" face="Arial, Helvetica,
                  sans-serif"><strong><font color="#384845">+34 677 811
                      883</font></strong> · <a href="mailto:jabarcay@gmail.com" target="_blank"></a><a href="mailto:jabarcay@gmail.com" target="_blank">jabarcay@gmail.com</a>
                </font><br>
              </p>
              <p> </p>
              <table style="margin-top:10px" border="0" cellpadding="15" cellspacing="0">
                <tbody>
                  <tr>
                    <td style="padding:5px"> <a><img src="cid:part21.04050208.00060606@gmail.com" alt="skype" height="24" border="0" width="24"></a>   <a href="http://es.linkedin.com/pub/jos%C3%A9-antonio-barre%C3%B1a-cayuela/26/936/15a/" target="_blank"><img src="cid:part23.07020404.00080509@gmail.com" alt="linkedIn" height="24" border="0" width="24"></a>     </td>
                  </tr>
                </tbody>
              </table>
            </td>
          </tr>
        </tbody>
      </table>
    </div>
  </font></span></div>

<br>_______________________________________________<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" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br></blockquote></div><br></div>