<div style="font-family: Menlo, Consolas, Courier New, Monospace; font-size: 14px;">Dear all,<br></div><div style="font-family: Menlo, Consolas, Courier New, Monospace; font-size: 14px;"><br></div><div style="font-family: Menlo, Consolas, Courier New, Monospace; font-size: 14px;">I am working with a raster with very large integers. That are stored as 64 bit floats (imported from a GTiff). I wish to extract part of these values with an integer division. The first approach was:</div><div style="font-family: Menlo, Consolas, Courier New, Monospace; font-size: 14px;"><br></div><div style="font-family: Menlo, Consolas, Courier New, Monospace; font-size: 14px;"><span>r.mapcalc 'short_ints = int(long_ints)/1000000'</span><br><span></span></div><div style="font-family: Menlo, Consolas, Courier New, Monospace; font-size: 14px;"><br></div><div style="font-family: Menlo, Consolas, Courier New, Monospace; font-size: 14px;">However, this results in something that is not an integer division. In fact I have no idea what the result is. Eventually, I succeeded with the following formulation:<br></div><div style="font-family: Menlo, Consolas, Courier New, Monospace; font-size: 14px;"><br></div><div style="font-family: Menlo, Consolas, Courier New, Monospace; font-size: 14px;"><span>r.mapcalc 'psu_ids = int(ssu_ids/1000000)'</span><br><span></span></div><div style="font-family: Menlo, Consolas, Courier New, Monospace; font-size: 14px;"><br></div><div style="font-family: Menlo, Consolas, Courier New, Monospace; font-size: 14px;">I have been going through the manual back and forth and can't understand why these two expressions produce different results. Any insights?<br></div><div style="font-family: Menlo, Consolas, Courier New, Monospace; font-size: 14px;"><br></div><div style="font-family: Menlo, Consolas, Courier New, Monospace; font-size: 14px;">Thank you.<br></div>
<div class="protonmail_signature_block" style="font-family: Menlo, Consolas, Courier New, Monospace; font-size: 14px;">
    <div class="protonmail_signature_block-user">
        <div><br></div><div>-- <br></div><div>Luís<br></div><div><br></div>
    </div>
    <div style="font-family: Menlo, Consolas, Courier New, Monospace; font-size: 14px;"><br></div>
    <div class="protonmail_signature_block-proton">
        Sent with <a target="_blank" href="https://proton.me/" rel="noopener noreferrer">Proton Mail</a> secure email.
    </div>
</div>