<?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>parseInt ( ) Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/parseint/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/parseint/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Wed, 13 Apr 2022 16:30:46 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>
	<item>
		<title>Global JavaScript Methods</title>
		<link>https://www.scmgalaxy.com/tutorials/global-javascript-methods/</link>
					<comments>https://www.scmgalaxy.com/tutorials/global-javascript-methods/#respond</comments>
		
		<dc:creator><![CDATA[rajeshkumar]]></dc:creator>
		<pubDate>Thu, 05 Aug 2021 12:23:32 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Global]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[methods]]></category>
		<category><![CDATA[Number]]></category>
		<category><![CDATA[parseFloat ( )]]></category>
		<category><![CDATA[parseInt ( )]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=7448</guid>

					<description><![CDATA[<p>Global JS Methods JavaScript global methods can be used on all JavaScript data types. Number ( ) parseFloat ( ) [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/global-javascript-methods/">Global JavaScript Methods</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">Global JS Methods</h2>



<p class="wp-block-paragraph">JavaScript global methods can be used on all JavaScript data types.</p>



<ul class="wp-block-list"><li><strong>Number ( )</strong></li><li><strong>parseFloat ( )</strong></li><li><strong>parseInt ( )</strong></li></ul>



<h2 class="wp-block-heading">Number ( )</h2>



<p class="wp-block-paragraph">The Number() function converts the object argument to a number that<br>represents the object&#8217;s value.<br>If the value cannot be converted to a legal number, NaN is returned.<br>If the parameter is a Date object, the Number() function returns the number of<br>milliseconds since midnight January 1, 1970, UTC.</p>



<p class="wp-block-paragraph">Ex: &#8211;</p>



<p class="wp-block-paragraph">Number(true)<br>Number(“100”)<br>Number(100/“Hello”)</p>



<script src="https://gist.github.com/vijaypk376/e945e7ec936a53fcc02aaaa6289f93d9.js"></script>



<h2 class="wp-block-heading">parseInt ( )</h2>



<p class="wp-block-paragraph">The parseInt() function parses a string and returns an integer.</p>



<p class="wp-block-paragraph"><strong>Syntax:- parseInt(string, radix)</strong></p>



<p class="wp-block-paragraph">The radix parameter is used to specify which numeral system to be used, for example, a<br>the radix of 16 (hexadecimal) indicates that the number in the string should be parsed from<br>a hexadecimal number to a decimal number.</p>



<p class="wp-block-paragraph">If the radix parameter is omitted, JavaScript assumes the following:</p>



<ul class="wp-block-list"><li>If the string begins with &#8220;0x&#8221;, the radix is 16 (hexadecimal)</li><li>If the string begins with any other value, the radix is 10 (decimal)</li></ul>



<p class="wp-block-paragraph">Only the first number in the string is returned.<br>Leading and trailing spaces are allowed.<br>If the first character cannot be converted to a number, parseInt() returns NaN.</p>



<h2 class="wp-block-heading">parseInt ( )</h2>



<script src="https://gist.github.com/vijaypk376/3fc4fbd96cac35bf5164797e572bf462.js"></script>



<h2 class="wp-block-heading">parseFloat ( )</h2>



<p class="wp-block-paragraph">The parseFloat() function parses a string and returns a floating-point number. This function determines if the first character in the specified string is a number. If it is, it parses the string until it reaches the end of the number, and returns the number as a number, not as a string.</p>



<p class="wp-block-paragraph"><strong>Syntax: &#8211; parseFloat(string)</strong></p>



<ul class="wp-block-list"><li>Only the first number in the string is returned!</li><li>Leading and trailing spaces are allowed.</li><li>If the first character cannot be converted to a number, parseFloat() returns NaN.</li></ul>



<h2 class="wp-block-heading">parseFloat ( )</h2>



<script src="https://gist.github.com/vijaypk376/a6f6af2237a245e416cbf0e057c2d121.js"></script>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/global-javascript-methods/">Global JavaScript Methods</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/global-javascript-methods/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
