<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>Odd Floating point issue in Marlin or LCD?</title>
        <description> I&#039;m using Slic3r 0.9.10b, with .24 first layer height and .20 layer height subsequent. (M5 threaded rods with a 0.8mm pitch are used for z. I&#039;ve got 4000 steps per unit, which seems right.)

Inspecting the g-code, I see what I&#039;d expect to, namely &quot;G1 ZXXXX&quot; comands for 0.24, 0.44, 0.64, etc., etc.

However, while the print is executing (RAMPS 1.4, Marlin) on the occasional layer my reprapdiscount LCD will show a layer height short ten microns, e.g., 12.63. Again, the g-code shows a G1 Z12.64. The next layer will display 12.84, as I&#039;d expect.

Has anyone else ever noticed this? Is this a floating-point error in the display, or something other fiendish little thing going on?</description>
        <link>https://reprap.org/forum/read.php?1,277404,277404#msg-277404</link>
        <lastBuildDate>Mon, 14 Sep 2026 10:13:56 -0400</lastBuildDate>
        <generator>Phorum 5.2.23</generator>
        <item>
            <guid>https://reprap.org/forum/read.php?1,277404,277404#msg-277404</guid>
            <title>Odd Floating point issue in Marlin or LCD?</title>
            <link>https://reprap.org/forum/read.php?1,277404,277404#msg-277404</link>
            <description><![CDATA[ I'm using Slic3r 0.9.10b, with .24 first layer height and .20 layer height subsequent. (M5 threaded rods with a 0.8mm pitch are used for z. I've got 4000 steps per unit, which seems right.)<br />
<br />
Inspecting the g-code, I see what I'd expect to, namely "G1 ZXXXX" comands for 0.24, 0.44, 0.64, etc., etc.<br />
<br />
However, while the print is executing (RAMPS 1.4, Marlin) on the occasional layer my reprapdiscount LCD will show a layer height short ten microns, e.g., 12.63. Again, the g-code shows a G1 Z12.64. The next layer will display 12.84, as I'd expect.<br />
<br />
Has anyone else ever noticed this? Is this a floating-point error in the display, or something other fiendish little thing going on?]]></description>
            <dc:creator>Karmavore</dc:creator>
            <category>General</category>
            <pubDate>Sun, 08 Dec 2013 18:26:50 -0500</pubDate>
        </item>
    </channel>
</rss>
