<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>From Zero to Float on Ciência Programada</title>
    <link>https://cienciaprogramada.com/series/from-zero-to-float/</link>
    <description>Recent content in From Zero to Float on Ciência Programada</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <managingEditor>contato[@]cienciaprogramada.com.br (Francisco Bustamante)</managingEditor>
    <webMaster>contato[@]cienciaprogramada.com.br (Francisco Bustamante)</webMaster>
    <copyright>© 2026 Francisco Bustamante</copyright>
    <lastBuildDate>Fri, 03 Apr 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://cienciaprogramada.com/series/from-zero-to-float/index.xml" rel="self" type="application/rss+xml" />
    
    <item>
      <title>Inside IEEE 754: How the Computer Stores Real Numbers (and Why It Gets Them Wrong)</title>
      <link>https://cienciaprogramada.com/2026/04/ieee-754-real-number-representation/</link>
      <pubDate>Fri, 03 Apr 2026 00:00:00 +0000</pubDate>
      <author>contato[@]cienciaprogramada.com.br (Francisco Bustamante)</author>
      <guid>https://cienciaprogramada.com/2026/04/ieee-754-real-number-representation/</guid>
      <description>How can the same 32 bits hold the distance between galaxies and the diameter of an atom? We dissect IEEE 754: sign, biased exponent and significand with a hidden bit, hand conversions, infinity, NaN, subnormals and machine epsilon.</description>
      <media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://cienciaprogramada.com/2026/04/ieee-754-real-number-representation/featured_0057.jpg" />
    </item>
    
    <item>
      <title>Real Numbers and Floating Point: Base Conversion and Precision</title>
      <link>https://cienciaprogramada.com/2026/04/real-numbers-base-conversion/</link>
      <pubDate>Wed, 01 Apr 2026 00:00:00 +0000</pubDate>
      <author>contato[@]cienciaprogramada.com.br (Francisco Bustamante)</author>
      <guid>https://cienciaprogramada.com/2026/04/real-numbers-base-conversion/</guid>
      <description>Why doesn&amp;rsquo;t 0.1 plus 0.2 give 0.3? Because 0.1 is a repeating fraction in binary. We convert fractions between bases by successive multiplications, look at the bits of a float with struct, and see two practical ways out: integers for money and math.isclose for comparisons.</description>
      <media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://cienciaprogramada.com/2026/04/real-numbers-base-conversion/featured_0053.jpg" />
    </item>
    
    <item>
      <title>Bit-Level Logic: Bitwise Operators and Masks in Python</title>
      <link>https://cienciaprogramada.com/2026/03/bitwise-operators-masks-python/</link>
      <pubDate>Mon, 30 Mar 2026 00:00:00 +0000</pubDate>
      <author>contato[@]cienciaprogramada.com.br (Francisco Bustamante)</author>
      <guid>https://cienciaprogramada.com/2026/03/bitwise-operators-masks-python/</guid>
      <description>In Python, 5 and 6 returns 6, and 5 &amp;amp; 6 returns 4. We explain the difference and the bitwise operators AND, OR, XOR, NOT and the shifts, used in masks that check, set, clear and toggle bits. In the end, we see where the 755 in chmod comes from.</description>
      <media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://cienciaprogramada.com/2026/03/bitwise-operators-masks-python/featured_0056.jpg" />
    </item>
    
    <item>
      <title>How the Computer Subtracts by Adding: Two&#39;s Complement and Overflow</title>
      <link>https://cienciaprogramada.com/2026/03/twos-complement-overflow/</link>
      <pubDate>Fri, 27 Mar 2026 00:00:00 +0000</pubDate>
      <author>contato[@]cienciaprogramada.com.br (Francisco Bustamante)</author>
      <guid>https://cienciaprogramada.com/2026/03/twos-complement-overflow/</guid>
      <description>To subtract, the processor adds the first number to the complement of the second, so a single adder does both operations. We will see two&amp;rsquo;s complement, why 8 signed bits range from -128 to +127, and how overflow took down the Ariane 5 and froze Pac-Man on level 256.</description>
      <media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://cienciaprogramada.com/2026/03/twos-complement-overflow/featured_0055.jpg" />
    </item>
    
    <item>
      <title>Computer Arithmetic: Addition and Subtraction in Binary, Octal, and Hexadecimal</title>
      <link>https://cienciaprogramada.com/2026/03/arithmetic-operations-number-bases/</link>
      <pubDate>Wed, 25 Mar 2026 00:00:00 +0000</pubDate>
      <author>contato[@]cienciaprogramada.com.br (Francisco Bustamante)</author>
      <guid>https://cienciaprogramada.com/2026/03/arithmetic-operations-number-bases/</guid>
      <description>The addition and subtraction rules of base 10 hold in any base: only the value that triggers the carry changes. We do arithmetic in binary, octal, and hexadecimal, see why with three addends the carry can be worth 2, and implement both algorithms in Python.</description>
      <media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://cienciaprogramada.com/2026/03/arithmetic-operations-number-bases/featured_0054.jpg" />
    </item>
    
    <item>
      <title>Number Bases and Integer Conversion: The Complete Guide</title>
      <link>https://cienciaprogramada.com/2026/03/integer-bases-conversions/</link>
      <pubDate>Mon, 23 Mar 2026 00:00:00 +0000</pubDate>
      <author>contato[@]cienciaprogramada.com.br (Francisco Bustamante)</author>
      <guid>https://cienciaprogramada.com/2026/03/integer-bases-conversions/</guid>
      <description>In any base, the value of the base itself is written 10. We start from positional notation to convert integers between decimal, binary, octal, and hexadecimal, using expansion, successive divisions, bit grouping, and Python&amp;rsquo;s bin, oct, hex, and int functions.</description>
      <media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://cienciaprogramada.com/2026/03/integer-bases-conversions/featured_0052.jpg" />
    </item>
    
  </channel>
</rss>
