<?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>numeric value Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/numeric-value/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/numeric-value/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Wed, 13 Apr 2022 16:34: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>Syntax ERROR: A non well formed numeric value encountered</title>
		<link>https://www.scmgalaxy.com/tutorials/syntax-error-a-non-well-formed-numeric-value-encountered/</link>
					<comments>https://www.scmgalaxy.com/tutorials/syntax-error-a-non-well-formed-numeric-value-encountered/#comments</comments>
		
		<dc:creator><![CDATA[rajeshkumar]]></dc:creator>
		<pubDate>Mon, 14 Jun 2021 08:30:20 +0000</pubDate>
				<category><![CDATA[Laravel]]></category>
		<category><![CDATA[encountered]]></category>
		<category><![CDATA[laravel]]></category>
		<category><![CDATA[non well formed]]></category>
		<category><![CDATA[numeric value]]></category>
		<category><![CDATA[Syntax ERROR]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=6488</guid>

					<description><![CDATA[<p>When you using @foreach value in a variable in your blade file and put any value and using any Mathematics [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/syntax-error-a-non-well-formed-numeric-value-encountered/">Syntax ERROR: A non well formed numeric value encountered</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">When you using @foreach value in a variable in your blade file and put any value and using any Mathematics function in your value for showing your document this type of error.</p>



<p class="wp-block-paragraph"></p>



<figure class="wp-block-image size-large"><img fetchpriority="high" decoding="async" width="1024" height="269" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/06/A-non-well-formed-numeric-value-encountered-1024x269.png" alt="" class="wp-image-6489" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/06/A-non-well-formed-numeric-value-encountered-1024x269.png 1024w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/06/A-non-well-formed-numeric-value-encountered-300x79.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/06/A-non-well-formed-numeric-value-encountered-768x202.png 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/06/A-non-well-formed-numeric-value-encountered.png 1533w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="325" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/06/whoops-looks-like-something-went-wrong-1024x325.png" alt="" class="wp-image-6490" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/06/whoops-looks-like-something-went-wrong-1024x325.png 1024w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/06/whoops-looks-like-something-went-wrong-300x95.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/06/whoops-looks-like-something-went-wrong-768x244.png 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/06/whoops-looks-like-something-went-wrong.png 1345w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
 @foreach($allcourses as $i =&gt; $allclass)

	&amp;lt;p&gt;{{$allclass&#x5B;&#039;total_fees_of_class&#039;]}}&amp;lt;/p&gt;
            &amp;lt;?php 
                        $fee = $allclass&#x5B;&#039;total_fees_of_class&#039;]; 
                        $c = ($fee);
                        $a = (100);
                        $d = (20);
                        $e = $c * $d / $a;
                        $fee = $c + $e;
           ?&gt;

               &amp;lt;span&gt;
               		&amp;lt;b&gt;{{$fee}}&amp;lt;/b&gt;
               &amp;lt;/span&gt;
@endforeach
</pre></div>


<p class="wp-block-paragraph">Then, You can add (int) as prefix in your foreach value as &#8220;$c = (int)($fee);&#8221; and write as below code</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
               &amp;lt;?php 
                    $fee = $allclass&#x5B;&#039;total_fees_of_class&#039;]; 
                    $c = (int)($fee);
                    $a = (100);
                    $d = (20);
                    $e = $c * $d / $a;
                    $fee = $c + $e;
               ?&gt;
</pre></div>


<p class="wp-block-paragraph">Your program will run.</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/syntax-error-a-non-well-formed-numeric-value-encountered/">Syntax ERROR: A non well formed numeric value encountered</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/syntax-error-a-non-well-formed-numeric-value-encountered/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
