<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>integer range Archives - SoftUni Global</title>
	<atom:link href="https://softuni.org/tag/integer-range/feed/" rel="self" type="application/rss+xml" />
	<link>https://softuni.org/tag/integer-range/</link>
	<description>Learn Programming and Start a Developer Job</description>
	<lastBuildDate>Fri, 01 Apr 2022 12:59:07 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://softuni.org/wp-content/uploads/2022/04/cropped-SoftUni-Global-Logo-Square-notext-32x32.png</url>
	<title>integer range Archives - SoftUni Global</title>
	<link>https://softuni.org/tag/integer-range/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Data Representation in Computer Memory [Dev Concepts #33]</title>
		<link>https://softuni.org/dev-concepts/data-representation-in-computer-memory/</link>
					<comments>https://softuni.org/dev-concepts/data-representation-in-computer-memory/#respond</comments>
		
		<dc:creator><![CDATA[Aleksandar Peev]]></dc:creator>
		<pubDate>Thu, 31 Mar 2022 06:00:00 +0000</pubDate>
				<category><![CDATA[Dev Concepts]]></category>
		<category><![CDATA[binary]]></category>
		<category><![CDATA[binary integers]]></category>
		<category><![CDATA[devconcepts]]></category>
		<category><![CDATA[floating-point]]></category>
		<category><![CDATA[integer range]]></category>
		<category><![CDATA[mathematics]]></category>
		<category><![CDATA[maths]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[signed integers]]></category>
		<category><![CDATA[software engineering]]></category>
		<category><![CDATA[unicode]]></category>
		<guid isPermaLink="false">https://softuni.org/?p=16611</guid>

					<description><![CDATA[<p>In this article of the series Dev Concepts, we take a look at the binary representation of integers, floating-point numbers, text, and unicode.</p>
<p>The post <a href="https://softuni.org/dev-concepts/data-representation-in-computer-memory/">Data Representation in Computer Memory [Dev Concepts #33]</a> appeared first on <a href="https://softuni.org">SoftUni Global</a>.</p>
]]></description>
										<content:encoded><![CDATA[		<div data-elementor-type="wp-post" data-elementor-id="16611" class="elementor elementor-16611" data-elementor-post-type="post">
						<section class="elementor-section elementor-top-section elementor-element elementor-element-5d5405e elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="5d5405e" data-element_type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-0d32134" data-id="0d32134" data-element_type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-9216798 elementor-widget elementor-widget-text-editor" data-id="9216798" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p><span data-preserver-spaces="true">In this lesson, we will talk about <strong>storing data</strong> in the <strong>computer memory</strong>. By the end of this article, you will know how to work with <strong>binary representation</strong> of <strong>integers</strong>, <strong>floating-point numbers</strong>, <strong>text</strong>, and <strong>Unicode</strong>.</span></p>								</div>
				</div>
				<div class="elementor-element elementor-element-88292b4 elementor-widget elementor-widget-video" data-id="88292b4" data-element_type="widget" data-settings="{&quot;youtube_url&quot;:&quot;https:\/\/youtu.be\/rnV88Sg8IU8&quot;,&quot;video_type&quot;:&quot;youtube&quot;,&quot;controls&quot;:&quot;yes&quot;}" data-widget_type="video.default">
				<div class="elementor-widget-container">
							<div class="elementor-wrapper elementor-open-inline">
			<div class="elementor-video"></div>		</div>
						</div>
				</div>
				<div class="elementor-element elementor-element-3d7dddf elementor-widget elementor-widget-text-editor" data-id="3d7dddf" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p><strong>Integer numbers</strong> are represented in the computer memory, as a <strong>sequence of bits</strong>: 8-bits, 16-bits, 24-bits, 32-bits, 64-bits, and others, but always a multiple of 8 (one byte). They can be <strong>signed</strong> or <strong>unsigned</strong> and depending on this, hold a <strong>positive</strong>, or <strong>negative value</strong>. Some values in the real world can only be <strong>positive</strong> &#8211; the number of students enrolled in a class. There can be also <strong>negative values</strong> in the real world such as daily temperature.</p>								</div>
				</div>
				<div class="elementor-element elementor-element-de70d81 elementor-widget elementor-widget-text-editor" data-id="de70d81" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p><strong><span data-preserver-spaces="true">Positive 8-bit integers </span></strong><span data-preserver-spaces="true">have a leading <strong>0</strong>, followed by <strong>7</strong> other bits. Their format matches the pattern &#8220;<strong>0XXXXXXX</strong>&#8221; (positive sign +<strong> 7</strong> significant bits). Their value is the decimal value of their significant bits (the last <strong>7 </strong>bits).</span></p><p><span data-preserver-spaces="true"><strong>Negative 8-bit integers</strong> have a leading one, followed by <strong>7</strong> other bits. Their format matches the pattern &#8220;<strong>1YYYYYYY</strong>&#8221; (negative sign + <strong>7</strong> significant bits). Their value is <strong>-128</strong> (which is minus <strong>2</strong> to the power of <strong>7</strong>) plus the decimal value of their significant bits.</span></p><p><img decoding="async" class=" wp-image-16629 aligncenter" src="https://softuni.org/wp-content/uploads/2022/03/8-bit-binary-integer-300x81.png" alt="8-bit-binary-integer" width="345" height="93" srcset="https://softuni.org/wp-content/uploads/2022/03/8-bit-binary-integer-300x81.png 300w, https://softuni.org/wp-content/uploads/2022/03/8-bit-binary-integer-600x163.png 600w, https://softuni.org/wp-content/uploads/2022/03/8-bit-binary-integer.png 616w" sizes="(max-width: 345px) 100vw, 345px" /></p><p style="text-align: center;"><strong>Example of signed 8-bit binary integer</strong></p>								</div>
				</div>
				<div class="elementor-element elementor-element-8569737 elementor-widget elementor-widget-text-editor" data-id="8569737" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>The table below summarizes the <strong>ranges of the integer data types</strong> in most popular <strong>programming languages</strong>, which follow the underlying number representations that we discussed in this lesson. Most programming languages also have <strong>64-bit signed</strong> and <strong>unsigned integers</strong>, which behave just like the other integer types but have <strong>significantly larger ranges</strong>.</p><p><img fetchpriority="high" decoding="async" class="wp-image-16639 aligncenter" src="https://softuni.org/wp-content/uploads/2022/03/ranges-of-integer-data-types-300x123.png" alt="ranges-of-integer-data-types" width="541" height="222" srcset="https://softuni.org/wp-content/uploads/2022/03/ranges-of-integer-data-types-300x123.png 300w, https://softuni.org/wp-content/uploads/2022/03/ranges-of-integer-data-types-1024x420.png 1024w, https://softuni.org/wp-content/uploads/2022/03/ranges-of-integer-data-types-768x315.png 768w, https://softuni.org/wp-content/uploads/2022/03/ranges-of-integer-data-types-600x246.png 600w, https://softuni.org/wp-content/uploads/2022/03/ranges-of-integer-data-types.png 1195w" sizes="(max-width: 541px) 100vw, 541px" /></p><ul><li><span data-preserver-spaces="true">The <strong>8-bit</strong> <strong>signed integers</strong> have a range from <strong>-128</strong> to <strong>127</strong>. This is the </span><strong><span data-preserver-spaces="true">sbyte</span></strong><span data-preserver-spaces="true"> type in C# and the byte type in Java.</span></li><li><span data-preserver-spaces="true">The <strong>8-bit unsigned integers</strong> have a range from <strong>0</strong> to <strong>255</strong>. This is the </span><strong><span data-preserver-spaces="true">byte</span></strong><span data-preserver-spaces="true"> type in C#.</span></li><li><span data-preserver-spaces="true">The <strong>16-bit signed integers</strong> have a range from <strong>-32768</strong> to <strong>32767</strong>. This is the </span><strong><span data-preserver-spaces="true">short</span></strong><span data-preserver-spaces="true"> type in Java, C#.</span></li><li><span data-preserver-spaces="true">The <strong>16-bit unsigned integers</strong> have a range from <strong>0</strong> to <strong>65536</strong>. This is the </span><strong><span data-preserver-spaces="true">ushort</span></strong><span data-preserver-spaces="true"> type in C#.</span></li><li><span data-preserver-spaces="true">The <strong>32-bit signed integers</strong> have a range from<strong> -231</strong> … <strong>231-1</strong> (which is from minus <strong>2</strong> billion to <strong>2</strong> billion roughly).  </span><span data-preserver-spaces="true">This is the </span><strong><span data-preserver-spaces="true">int</span></strong><span data-preserver-spaces="true"> type in C#, Java, and most other languages. This </span><strong><span data-preserver-spaces="true">32-bit signed integer </span></strong><span data-preserver-spaces="true">data type is the most often used in computer programming. Most developers write &#8220;<strong>int</strong>&#8221; when they need just a number, without worrying about the range of its possible values because the range of &#8220;</span><strong><span data-preserver-spaces="true">int</span></strong><span data-preserver-spaces="true">&#8221; is large enough for most use cases.</span></li></ul>								</div>
				</div>
				<div class="elementor-element elementor-element-d532f43 elementor-widget elementor-widget-heading" data-id="d532f43" data-element_type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h3 class="elementor-heading-title elementor-size-default">Representing Text</h3>				</div>
				</div>
				<div class="elementor-element elementor-element-edfdd22 elementor-widget elementor-widget-text-editor" data-id="edfdd22" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p><span data-preserver-spaces="true">Computers represent text characters as unsigned integer numbers, which means that letters are sequences of bits, just like numbers.</span></p><p><span data-preserver-spaces="true">The ASCII standard represents </span><strong><span data-preserver-spaces="true">text characters</span></strong><span data-preserver-spaces="true"> as 8-bit integers. It is one of the oldest standards in the computer industry, which defines mappings between letters and unsigned integers. It simply </span><strong><span data-preserver-spaces="true">assigns a unique number for each letter </span></strong><span data-preserver-spaces="true">and thus allows </span><strong><span data-preserver-spaces="true">letters to be encoded as numbers</span></strong><span data-preserver-spaces="true">.</span></p><p><span data-preserver-spaces="true"><img decoding="async" class=" wp-image-16646 alignleft" src="https://softuni.org/wp-content/uploads/2022/03/representing-text-300x122.png" alt="representing-text" width="274" height="111" srcset="https://softuni.org/wp-content/uploads/2022/03/representing-text-300x122.png 300w, https://softuni.org/wp-content/uploads/2022/03/representing-text.png 555w" sizes="(max-width: 274px) 100vw, 274px" />For example, the letter &#8220;<strong>A</strong>&#8221; has ASCII code </span><strong><span data-preserver-spaces="true">65</span></strong><span data-preserver-spaces="true">. The letter &#8220;<strong>B</strong>&#8221; has ASCII code </span><strong><span data-preserver-spaces="true">66</span></strong><span data-preserver-spaces="true">. The &#8220;</span><strong><span data-preserver-spaces="true">plus sign</span></strong><span data-preserver-spaces="true">&#8221; has ASCII code </span><strong><span data-preserver-spaces="true">43</span></strong><span data-preserver-spaces="true">. The hex and binary values are also shown and are useful in some situations.</span></p>								</div>
				</div>
				<div class="elementor-element elementor-element-3fa755f elementor-widget elementor-widget-heading" data-id="3fa755f" data-element_type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h3 class="elementor-heading-title elementor-size-default">Representing Unicode Text</h3>				</div>
				</div>
				<div class="elementor-element elementor-element-153a75b elementor-widget elementor-widget-text-editor" data-id="153a75b" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p><span data-preserver-spaces="true">The </span><strong><span data-preserver-spaces="true">Unicode</span></strong><span data-preserver-spaces="true"> standard represents more than </span><strong><span data-preserver-spaces="true">100,000</span></strong><span data-preserver-spaces="true"> text characters as </span><strong><span data-preserver-spaces="true">16-bit integers</span></strong><span data-preserver-spaces="true">. Unlike ASCII it uses </span><strong><span data-preserver-spaces="true">more bits per character </span></strong><span data-preserver-spaces="true">and therefore it can represent texts in many languages and alphabets, like Latin, Cyrillic, Arabic, Chinese, Greek, Korean, Japanese, and many others. </span></p><p>Here are <span data-preserver-spaces="true">a few </span><strong><span data-preserver-spaces="true">examples </span></strong><span data-preserver-spaces="true">of Unicode characters:</span></p><p><span data-preserver-spaces="true"><img loading="lazy" decoding="async" class=" wp-image-16650 alignleft" src="https://softuni.org/wp-content/uploads/2022/03/representing-unicode-text-300x139.png" alt="representing-unicode-text" width="337" height="156" srcset="https://softuni.org/wp-content/uploads/2022/03/representing-unicode-text-300x139.png 300w, https://softuni.org/wp-content/uploads/2022/03/representing-unicode-text.png 595w" sizes="(max-width: 337px) 100vw, 337px" /></span></p><ul><li><span data-preserver-spaces="true">The Latin letter &#8220;<strong>A</strong>&#8221; has Unicode number <strong>65</strong>.</span></li><li><span data-preserver-spaces="true">The Cyrillic letter &#8220;</span><strong><span data-preserver-spaces="true">sht&#8221;</span></strong><span data-preserver-spaces="true"> has Unicode number </span><strong><span data-preserver-spaces="true">1097</span></strong><span data-preserver-spaces="true">.</span></li><li><span data-preserver-spaces="true">The Arabic letter &#8220;</span><strong><span data-preserver-spaces="true">beh&#8221;</span></strong><span data-preserver-spaces="true"> has Unicode number </span><strong><span data-preserver-spaces="true">1576</span></strong><span data-preserver-spaces="true">.</span></li><li><span data-preserver-spaces="true">The &#8220;<strong>guitar</strong>&#8221; emoji symbol has Unicode number <strong>127928</strong>.</span></li></ul>								</div>
				</div>
				<div class="elementor-element elementor-element-e31e9a6 elementor-widget elementor-widget-text-editor" data-id="e31e9a6" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p><span data-preserver-spaces="true">In any </span><strong><span data-preserver-spaces="true">programming language</span></strong><span data-preserver-spaces="true">, we either </span><strong><span data-preserver-spaces="true">declare data type</span></strong><span data-preserver-spaces="true"> before using a variable, or the language </span><strong><span data-preserver-spaces="true">automatically assigns a specific data type</span></strong><span data-preserver-spaces="true">. In this lesson, we have learned how computers store </span><strong><span data-preserver-spaces="true">integer</span></strong><span data-preserver-spaces="true"> numbers, </span><strong><span data-preserver-spaces="true">floating-point</span></strong><span data-preserver-spaces="true"> numbers, </span><strong><span data-preserver-spaces="true">text</span></strong><span data-preserver-spaces="true">, and other data. These concepts shouldn’t be taken lightly, and be careful with them!</span></p>								</div>
				</div>
				<div class="elementor-element elementor-element-4a0f072 elementor-widget elementor-widget-text-editor" data-id="4a0f072" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<h2>Lesson Topics</h2><div><div><div>In this tutorial we cover the following topics:</div></div><ul><li><p><strong>Representation of Data</strong></p></li><li><p><strong>Representing Integers in Memory</strong></p></li><li><p><strong>Representation of Signed Integers</strong></p></li><li><p><strong>Largest and Smallest Signed Integers</strong></p></li><li><p><strong>Integers and Their Ranges in Programming</strong></p></li><li><p><strong>Representing Real Numbers</strong></p></li><li><p><strong>Storing Floating-Point Numbers</strong></p></li><li><p><strong>Representing Text and Unicode Text</strong></p></li><li><p><strong>Sequences of Characters</strong></p></li></ul></div>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-3381a86 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="3381a86" data-element_type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-0cf09e3" data-id="0cf09e3" data-element_type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
							</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-a0aff0b elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="a0aff0b" data-element_type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-48c6c18" data-id="48c6c18" data-element_type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-f972417 elementor-widget elementor-widget-heading" data-id="f972417" data-element_type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default">Lesson Slides</h2>				</div>
				</div>
				<div class="elementor-element elementor-element-37e6760 elementor-widget elementor-widget-pdfjs_viewer" data-id="37e6760" data-element_type="widget" data-widget_type="pdfjs_viewer.default">
				<div class="elementor-widget-container">
					<iframe src="https://softuni.org/wp-content/plugins/pdf-viewer-for-elementor/assets/pdfjs/web/viewer.html?file=https://softuni.org/wp-content/uploads/2022/03/Dev-Concepts-Episode-33-Data-Representation-in-Computer-Memory.pdf&amp;embedded=true" style="display: block; margin-left: auto; margin-right: auto; width: 100%; height: 800px;" frameborder="1" marginheight="0px" marginwidth="0px" allowfullscreen></iframe>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-4ca1c1a elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="4ca1c1a" data-element_type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-bf26fe3" data-id="bf26fe3" data-element_type="column">
			<div class="elementor-widget-wrap">
							</div>
		</div>
					</div>
		</section>
				</div>
		<p>The post <a href="https://softuni.org/dev-concepts/data-representation-in-computer-memory/">Data Representation in Computer Memory [Dev Concepts #33]</a> appeared first on <a href="https://softuni.org">SoftUni Global</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://softuni.org/dev-concepts/data-representation-in-computer-memory/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/?utm_source=w3tc&utm_medium=footer_comment&utm_campaign=free_plugin

Page Caching using Disk: Enhanced 
Lazy Loading (feed)

Served from: softuni.org @ 2026-07-01 13:50:06 by W3 Total Cache
-->