<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Garlinsk_code</title>
    <description>The latest articles on DEV Community by Garlinsk_code (@garlinsk).</description>
    <link>https://dev.to/garlinsk</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F818987%2F60bc8b26-46fb-4c3b-8378-c28fe36880d2.jpeg</url>
      <title>DEV Community: Garlinsk_code</title>
      <link>https://dev.to/garlinsk</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/garlinsk"/>
    <language>en</language>
    <item>
      <title>Casting in Python</title>
      <dc:creator>Garlinsk_code</dc:creator>
      <pubDate>Wed, 28 May 2025 05:47:21 +0000</pubDate>
      <link>https://dev.to/garlinsk/casting-in-python-1821</link>
      <guid>https://dev.to/garlinsk/casting-in-python-1821</guid>
      <description>&lt;p&gt;** Casting** is known as type conversion, the process involves changing a variable's data type from one type to another. This process ensures operations can be performed correctly and that data is used as intended.&lt;br&gt;
 Python supports 2 main types of casting;&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;1. Implicit casting&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;Python interpreter automatically does this type of casting, for instance, when an arithmetic operation between an integer and a float takes place, Python will automatically convert the integer to a float before performing the calculation.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;2. Explicit casting&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;This type of casting is done manually by the programmer using built-in functions.&lt;br&gt;
Common functions are;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;int(): converts value to an integer&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;float(): converts value to a floating point number&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;str(): converts value to a string&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;bool(): converts value to boolean&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;`x = 7 # x is an integer&lt;br&gt;
y = "14" # y is a string&lt;/p&gt;

&lt;p&gt;z = x + int(y) # Explicitly casting y to an integer before adding it to x&lt;br&gt;
print(z) # Output: 21`&lt;/p&gt;

&lt;p&gt;NOTE: Casting can lead to loss of precision; converting a float to an integer shortens the decimal part.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>[Boost]</title>
      <dc:creator>Garlinsk_code</dc:creator>
      <pubDate>Wed, 15 Jan 2025 12:12:50 +0000</pubDate>
      <link>https://dev.to/garlinsk/-j2k</link>
      <guid>https://dev.to/garlinsk/-j2k</guid>
      <description>&lt;div class="ltag__link"&gt;
  &lt;a href="/cryptosandy" class="ltag__link__link"&gt;
    &lt;div class="ltag__link__pic"&gt;
      &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2517749%2Fa2ef919b-d9dd-4717-b3fa-98a4c1da9cb1.jpg" alt="cryptosandy"&gt;
    &lt;/div&gt;
  &lt;/a&gt;
  &lt;a href="https://dev.to/cryptosandy/12-essential-sites-every-developer-should-know-3mn3" class="ltag__link__link"&gt;
    &lt;div class="ltag__link__content"&gt;
      &lt;h2&gt;12 Essential Sites Every Developer Should Know 🌐&lt;/h2&gt;
      &lt;h3&gt;Crypto.Andy (DEV) ・ Jan 8&lt;/h3&gt;
      &lt;div class="ltag__link__taglist"&gt;
        &lt;span class="ltag__link__tag"&gt;#tooling&lt;/span&gt;
        &lt;span class="ltag__link__tag"&gt;#productivity&lt;/span&gt;
        &lt;span class="ltag__link__tag"&gt;#webdev&lt;/span&gt;
        &lt;span class="ltag__link__tag"&gt;#programming&lt;/span&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/a&gt;
&lt;/div&gt;


</description>
      <category>discuss</category>
      <category>webdev</category>
      <category>resources</category>
      <category>career</category>
    </item>
  </channel>
</rss>
