{"id":3884,"date":"2024-04-13T07:03:02","date_gmt":"2024-04-13T01:33:02","guid":{"rendered":"https:\/\/cthecosmos.com\/?p=3884"},"modified":"2024-04-13T07:03:02","modified_gmt":"2024-04-13T01:33:02","slug":"how-is-a-floating-point-number-stored","status":"publish","type":"post","link":"https:\/\/cthecosmos.com\/?p=3884","title":{"rendered":"How is a floating-point number stored?"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1000\" height=\"560\" data-attachment-id=\"3886\" data-permalink=\"https:\/\/cthecosmos.com\/?attachment_id=3886\" data-orig-file=\"https:\/\/i0.wp.com\/cthecosmos.com\/wp-content\/uploads\/2024\/04\/float_binary-1.png?fit=1614%2C904&amp;ssl=1\" data-orig-size=\"1614,904\" data-comments-opened=\"1\" data-image-title=\"float_binary-1\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/cthecosmos.com\/wp-content\/uploads\/2024\/04\/float_binary-1.png?fit=1000%2C560&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/cthecosmos.com\/wp-content\/uploads\/2024\/04\/float_binary-1.png?resize=1000%2C560&#038;ssl=1\" alt=\"\" class=\"wp-image-3886\" \/><\/figure>\n\n\n\n<p class=\"has-black-color has-white-background-color has-text-color has-background has-link-color wp-elements-1 wp-block-paragraph\" style=\"font-size:17px\">A <strong>32-bit\/4-byte memory <\/strong>will be allocated by the computer to store a float value.<br><br>Consider float <strong>store_float = 33.154;<\/strong><br>(Conversion steps as per IEEE 754 floating point)<br><br>1. <strong><em>Determine the sign bit<\/em><\/strong>: The value is positive, hence sign bit is 0.<br><br>2. <strong><em>Convert integer as binary<\/em><\/strong>: 33 to binary &#8211;&gt; <strong>100001<\/strong><br><br>3. <strong><em>Convert fraction to binary<\/em><\/strong>: 154 to binary &#8211;&gt; <strong>00100101111000101011110<\/strong><br>(0.154 * 2 = 0.308( 0)<br>0.308 * 2 = 0.616 ( 0)<br>0.616 * 2 = 1.232 ( 1)<br>0.232 * 2 = 0.464 ( 0)<br>0.464 * 2 = 0.928 ( 0)<br>0.928 * 2 = 1.856 ( 1)<br>0.856 * 2 = 1.712 ( 1)<br>0.712 * 2 = 1.424 ( 1)<br>\u2026.)<br>to convert fraction, take the fraction part and multiply it with 2: 0.154*2 = 0.308, repeat until you reach desired precision or until the fractional part becomes 0). As per IEEE 754, for 32 bits floating point number, the fraction part has 23 bits. We can stop multiplying the fractional part after obtaining 23 bits or when it becomes 0. If it doesn\u2019t become 0, we can truncate it round the binary representation according to the desired precision.<br><br>(For 32-bit, Bias =127; For 64-bit, Bias =1023)<br><br>4. <strong><em>Combining Sign, Integer binary and fraction binary<\/em><\/strong>:<br><br><strong>100001.00100101111000101011110<\/strong><br><br>As per IEEE 754, the binary representation of floating point should be in the format: +\/-1.fraciton*2^exponent.<br>Move the decimal point to left until only 1 is left on left of the decimal point.<br><strong>1.0000100100101111000101011110<\/strong><br>It has been moved 5 positions to the left so the unbiased exponent is 5.<br><br>5. <strong><em>Calculating the biased exponent<\/em><\/strong><br>What is biased and unbiased value?<br>Biased value: The biased value is a fixed value added to the actual exponent to ensure a consistent representation of the exponent range. It is specific to the floating-point format being used.<br><br><strong>Unbiased value<\/strong>: The unbiased value refers to the actual value of the exponent without the bias. It represents the true power of the base (usually 2) to which the mantissa is raised.<br><br>(For 32-bit, Bias =127; For 64-bit, Bias =1023)<br><br>To get the Biased exponent, add unbiased value to 127 = 5+127 = 132<br><br>6. <strong><em>Convert the Biased exponent to binary<\/em><\/strong><br>132&#8211;&gt; 10000100<br><br>7. <strong><em>Combine Sign bit, biased exponent and fraction.<\/em><\/strong><br>Sign bit 0, Exponent: 10000100, Fraction: <strong>00001001001110110110010 <\/strong>(until 23 bits)<br><br>The final binary representation of 33.154 as per IEEE754 is<br><strong>0 10000100 00001001001110110110010<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"has-white-color has-text-color has-background has-link-color has-medium-font-size wp-elements-2 wp-block-paragraph\" style=\"background:linear-gradient(135deg,rgb(35,23,11) 0%,rgb(254,45,45) 50%,rgb(107,0,62) 100%)\">~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br><strong>An Article by: <\/strong>Yashwanth Naidu Tikkisetty<br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The computer allocates 32-bit memory for storing a float value, using IEEE 754 floating point conversion. With a positive value, the sign bit is 0. The integer and fraction are converted to binary, and the biased exponent is calculated and represented in the binary format. The final binary representation is 0 10000100 00001001001110110110010.<\/p>\n<a href=\"https:\/\/cthecosmos.com\/?p=3884\" class=\"more-link\">Read More <span class=\"screen-reader-text\">How is a floating-point number stored?<\/span><\/a>","protected":false},"author":120055267,"featured_media":3885,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_wpcom_ai_launchpad_first_post":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"{title}\n\n{excerpt}\n\n{url}","jetpack_publicize_feature_enabled":false,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_wpas_customize_per_network":false,"jetpack_post_was_ever_published":false},"categories":[769112296,36985,30181],"tags":[427291309,770792512,275455242,1354040],"class_list":["post-3884","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-c-concepts-hub","category-c-programming","category-embedded-systems","tag-cprogramming-2","tag-data-type-storage","tag-float-representation","tag-short-article","fallback-thumbnail"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.4 - aioseo.com -->\n\t<meta name=\"description\" content=\"The computer allocates 32-bit memory for storing a float value, using IEEE 754 floating point conversion. With a positive value, the sign bit is 0. The integer and fraction are converted to binary, and the biased exponent is calculated and represented in the binary format. The final binary representation is 0 10000100 00001001001110110110010.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Yashwanth Naidu Tikkisetty\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/cthecosmos.com\/?p=3884\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.4\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Yashwanth Naidu Tikkisetty - Embedded Systems | Space Blogger\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"How is a floating-point number stored? - Yashwanth Naidu Tikkisetty\" \/>\n\t\t<meta property=\"og:description\" content=\"The computer allocates 32-bit memory for storing a float value, using IEEE 754 floating point conversion. With a positive value, the sign bit is 0. The integer and fraction are converted to binary, and the biased exponent is calculated and represented in the binary format. The final binary representation is 0 10000100 00001001001110110110010.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/cthecosmos.com\/?p=3884\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/cthecosmos.com\/wp-content\/uploads\/2018\/08\/logo1.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/cthecosmos.com\/wp-content\/uploads\/2018\/08\/logo1.png\" \/>\n\t\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t\t<meta property=\"og:image:height\" content=\"1200\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2024-04-13T01:33:02+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2024-04-13T01:33:02+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"How is a floating-point number stored? - Yashwanth Naidu Tikkisetty\" \/>\n\t\t<meta name=\"twitter:description\" content=\"The computer allocates 32-bit memory for storing a float value, using IEEE 754 floating point conversion. With a positive value, the sign bit is 0. The integer and fraction are converted to binary, and the biased exponent is calculated and represented in the binary format. The final binary representation is 0 10000100 00001001001110110110010.\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/cthecosmos.com\/wp-content\/uploads\/2018\/08\/logo1.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/?p=3884#blogposting\",\"name\":\"How is a floating-point number stored? - Yashwanth Naidu Tikkisetty\",\"headline\":\"How is a floating-point number stored?\",\"author\":{\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/?author=120055267#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/#person\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/cthecosmos.com\\\/wp-content\\\/uploads\\\/2024\\\/04\\\/float_binary.png?fit=1614%2C904&ssl=1\",\"width\":1614,\"height\":904},\"datePublished\":\"2024-04-13T07:03:02+05:30\",\"dateModified\":\"2024-04-13T07:03:02+05:30\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/?p=3884#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/?p=3884#webpage\"},\"articleSection\":\"C Concepts Hub, c programming, Embedded Systems, cprogramming, data type storage, float representation, SHORT ARTICLE\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/?p=3884#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/cthecosmos.com\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/?cat=30181#listItem\",\"name\":\"Embedded Systems\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/?cat=30181#listItem\",\"position\":2,\"name\":\"Embedded Systems\",\"item\":\"https:\\\/\\\/cthecosmos.com\\\/?cat=30181\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/?p=3884#listItem\",\"name\":\"How is a floating-point number stored?\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/?p=3884#listItem\",\"position\":3,\"name\":\"How is a floating-point number stored?\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/?cat=30181#listItem\",\"name\":\"Embedded Systems\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/#person\",\"name\":\"Yashwanth Naidu Tikkisetty\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/?p=3884#personImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/a02d9f38e4c924587b544c74f6d5de0c8469b6a5c684622f1aa4ea2ba65b17d8?s=96&d=identicon&r=g\",\"width\":96,\"height\":96,\"caption\":\"Yashwanth Naidu Tikkisetty\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/?author=120055267#author\",\"url\":\"https:\\\/\\\/cthecosmos.com\\\/?author=120055267\",\"name\":\"Yashwanth Naidu Tikkisetty\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/?p=3884#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/a02d9f38e4c924587b544c74f6d5de0c8469b6a5c684622f1aa4ea2ba65b17d8?s=96&d=identicon&r=g\",\"width\":96,\"height\":96,\"caption\":\"Yashwanth Naidu Tikkisetty\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/?p=3884#webpage\",\"url\":\"https:\\\/\\\/cthecosmos.com\\\/?p=3884\",\"name\":\"How is a floating-point number stored? - Yashwanth Naidu Tikkisetty\",\"description\":\"The computer allocates 32-bit memory for storing a float value, using IEEE 754 floating point conversion. With a positive value, the sign bit is 0. The integer and fraction are converted to binary, and the biased exponent is calculated and represented in the binary format. The final binary representation is 0 10000100 00001001001110110110010.\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/?p=3884#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/?author=120055267#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/?author=120055267#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/cthecosmos.com\\\/wp-content\\\/uploads\\\/2024\\\/04\\\/float_binary.png?fit=1614%2C904&ssl=1\",\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/?p=3884\\\/#mainImage\",\"width\":1614,\"height\":904},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/?p=3884#mainImage\"},\"datePublished\":\"2024-04-13T07:03:02+05:30\",\"dateModified\":\"2024-04-13T07:03:02+05:30\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/#website\",\"url\":\"https:\\\/\\\/cthecosmos.com\\\/\",\"name\":\"Yashwanth Naidu Tikkisetty\",\"description\":\"Embedded Systems | Space Blogger\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/#person\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"How is a floating-point number stored? - Yashwanth Naidu Tikkisetty","description":"The computer allocates 32-bit memory for storing a float value, using IEEE 754 floating point conversion. With a positive value, the sign bit is 0. The integer and fraction are converted to binary, and the biased exponent is calculated and represented in the binary format. The final binary representation is 0 10000100 00001001001110110110010.","canonical_url":"https:\/\/cthecosmos.com\/?p=3884","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/cthecosmos.com\/?p=3884#blogposting","name":"How is a floating-point number stored? - Yashwanth Naidu Tikkisetty","headline":"How is a floating-point number stored?","author":{"@id":"https:\/\/cthecosmos.com\/?author=120055267#author"},"publisher":{"@id":"https:\/\/cthecosmos.com\/#person"},"image":{"@type":"ImageObject","url":"https:\/\/i0.wp.com\/cthecosmos.com\/wp-content\/uploads\/2024\/04\/float_binary.png?fit=1614%2C904&ssl=1","width":1614,"height":904},"datePublished":"2024-04-13T07:03:02+05:30","dateModified":"2024-04-13T07:03:02+05:30","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/cthecosmos.com\/?p=3884#webpage"},"isPartOf":{"@id":"https:\/\/cthecosmos.com\/?p=3884#webpage"},"articleSection":"C Concepts Hub, c programming, Embedded Systems, cprogramming, data type storage, float representation, SHORT ARTICLE"},{"@type":"BreadcrumbList","@id":"https:\/\/cthecosmos.com\/?p=3884#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/cthecosmos.com\/#listItem","position":1,"name":"Home","item":"https:\/\/cthecosmos.com\/","nextItem":{"@type":"ListItem","@id":"https:\/\/cthecosmos.com\/?cat=30181#listItem","name":"Embedded Systems"}},{"@type":"ListItem","@id":"https:\/\/cthecosmos.com\/?cat=30181#listItem","position":2,"name":"Embedded Systems","item":"https:\/\/cthecosmos.com\/?cat=30181","nextItem":{"@type":"ListItem","@id":"https:\/\/cthecosmos.com\/?p=3884#listItem","name":"How is a floating-point number stored?"},"previousItem":{"@type":"ListItem","@id":"https:\/\/cthecosmos.com\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/cthecosmos.com\/?p=3884#listItem","position":3,"name":"How is a floating-point number stored?","previousItem":{"@type":"ListItem","@id":"https:\/\/cthecosmos.com\/?cat=30181#listItem","name":"Embedded Systems"}}]},{"@type":"Person","@id":"https:\/\/cthecosmos.com\/#person","name":"Yashwanth Naidu Tikkisetty","image":{"@type":"ImageObject","@id":"https:\/\/cthecosmos.com\/?p=3884#personImage","url":"https:\/\/secure.gravatar.com\/avatar\/a02d9f38e4c924587b544c74f6d5de0c8469b6a5c684622f1aa4ea2ba65b17d8?s=96&d=identicon&r=g","width":96,"height":96,"caption":"Yashwanth Naidu Tikkisetty"}},{"@type":"Person","@id":"https:\/\/cthecosmos.com\/?author=120055267#author","url":"https:\/\/cthecosmos.com\/?author=120055267","name":"Yashwanth Naidu Tikkisetty","image":{"@type":"ImageObject","@id":"https:\/\/cthecosmos.com\/?p=3884#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/a02d9f38e4c924587b544c74f6d5de0c8469b6a5c684622f1aa4ea2ba65b17d8?s=96&d=identicon&r=g","width":96,"height":96,"caption":"Yashwanth Naidu Tikkisetty"}},{"@type":"WebPage","@id":"https:\/\/cthecosmos.com\/?p=3884#webpage","url":"https:\/\/cthecosmos.com\/?p=3884","name":"How is a floating-point number stored? - Yashwanth Naidu Tikkisetty","description":"The computer allocates 32-bit memory for storing a float value, using IEEE 754 floating point conversion. With a positive value, the sign bit is 0. The integer and fraction are converted to binary, and the biased exponent is calculated and represented in the binary format. The final binary representation is 0 10000100 00001001001110110110010.","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/cthecosmos.com\/#website"},"breadcrumb":{"@id":"https:\/\/cthecosmos.com\/?p=3884#breadcrumblist"},"author":{"@id":"https:\/\/cthecosmos.com\/?author=120055267#author"},"creator":{"@id":"https:\/\/cthecosmos.com\/?author=120055267#author"},"image":{"@type":"ImageObject","url":"https:\/\/i0.wp.com\/cthecosmos.com\/wp-content\/uploads\/2024\/04\/float_binary.png?fit=1614%2C904&ssl=1","@id":"https:\/\/cthecosmos.com\/?p=3884\/#mainImage","width":1614,"height":904},"primaryImageOfPage":{"@id":"https:\/\/cthecosmos.com\/?p=3884#mainImage"},"datePublished":"2024-04-13T07:03:02+05:30","dateModified":"2024-04-13T07:03:02+05:30"},{"@type":"WebSite","@id":"https:\/\/cthecosmos.com\/#website","url":"https:\/\/cthecosmos.com\/","name":"Yashwanth Naidu Tikkisetty","description":"Embedded Systems | Space Blogger","inLanguage":"en-US","publisher":{"@id":"https:\/\/cthecosmos.com\/#person"}}]},"og:locale":"en_US","og:site_name":"Yashwanth Naidu Tikkisetty - Embedded Systems | Space Blogger","og:type":"article","og:title":"How is a floating-point number stored? - Yashwanth Naidu Tikkisetty","og:description":"The computer allocates 32-bit memory for storing a float value, using IEEE 754 floating point conversion. With a positive value, the sign bit is 0. The integer and fraction are converted to binary, and the biased exponent is calculated and represented in the binary format. The final binary representation is 0 10000100 00001001001110110110010.","og:url":"https:\/\/cthecosmos.com\/?p=3884","og:image":"https:\/\/cthecosmos.com\/wp-content\/uploads\/2018\/08\/logo1.png","og:image:secure_url":"https:\/\/cthecosmos.com\/wp-content\/uploads\/2018\/08\/logo1.png","og:image:width":1200,"og:image:height":1200,"article:published_time":"2024-04-13T01:33:02+00:00","article:modified_time":"2024-04-13T01:33:02+00:00","twitter:card":"summary_large_image","twitter:title":"How is a floating-point number stored? - Yashwanth Naidu Tikkisetty","twitter:description":"The computer allocates 32-bit memory for storing a float value, using IEEE 754 floating point conversion. With a positive value, the sign bit is 0. The integer and fraction are converted to binary, and the biased exponent is calculated and represented in the binary format. The final binary representation is 0 10000100 00001001001110110110010.","twitter:image":"https:\/\/cthecosmos.com\/wp-content\/uploads\/2018\/08\/logo1.png"},"aioseo_meta_data":{"post_id":"3884","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2025-08-31 20:17:02","updated":"2025-08-31 20:17:02","seo_analyzer_scan_date":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/cthecosmos.com\/\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/cthecosmos.com\/?cat=30181\" title=\"Embedded Systems\">Embedded Systems<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tHow is a floating-point number stored?\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/cthecosmos.com\/"},{"label":"Embedded Systems","link":"https:\/\/cthecosmos.com\/?cat=30181"},{"label":"How is a floating-point number stored?","link":"https:\/\/cthecosmos.com\/?p=3884"}],"jetpack_publicize_connections":[],"jetpack_likes_enabled":true,"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8CiEf-10E","jetpack-related-posts":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/cthecosmos.com\/wp-content\/uploads\/2024\/04\/float_binary.png?fit=1614%2C904&ssl=1","_links":{"self":[{"href":"https:\/\/cthecosmos.com\/index.php?rest_route=\/wp\/v2\/posts\/3884","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cthecosmos.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cthecosmos.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cthecosmos.com\/index.php?rest_route=\/wp\/v2\/users\/120055267"}],"replies":[{"embeddable":true,"href":"https:\/\/cthecosmos.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3884"}],"version-history":[{"count":3,"href":"https:\/\/cthecosmos.com\/index.php?rest_route=\/wp\/v2\/posts\/3884\/revisions"}],"predecessor-version":[{"id":3889,"href":"https:\/\/cthecosmos.com\/index.php?rest_route=\/wp\/v2\/posts\/3884\/revisions\/3889"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cthecosmos.com\/index.php?rest_route=\/wp\/v2\/media\/3885"}],"wp:attachment":[{"href":"https:\/\/cthecosmos.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3884"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cthecosmos.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3884"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cthecosmos.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3884"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}