<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-9003996264535645171</id><updated>2024-08-28T17:11:52.570-07:00</updated><category term="PHP"/><title type='text'>Tie Science with Writing</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://wawan-wiharya.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9003996264535645171/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://wawan-wiharya.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>MyOne</name><uri>http://www.blogger.com/profile/15533601510573101227</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQPn3WksoNKKWBOvRd9CGKKGnHYL9jWPtIGfIRDpQ2ntFkcPggkebwofs2PP172iRpr35hOSn3b3H_iZQny1KiXq5NYTNdTzhs2zg19aOfW3Tbb_HN64NiswgOv0np4w/s220/photo.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>1</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-9003996264535645171.post-8610380462133040162</id><published>2010-01-28T08:10:00.000-08:00</published><updated>2010-01-28T08:54:00.033-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><title type='text'>Formatting a number into currency?</title><content type='html'>For those of you who often work with PHP programming language may have experienced difficulties in formatting the numbers into cash. Likewise with me before I found this function, I have difficulty when faced with the problem format.&lt;br /&gt;The solution I use the PHP function &lt;span style=&quot;font-weight:bold;&quot;&gt;number_format()&lt;/span&gt; to set the format of these numbers. The syntax is as follows:&lt;br /&gt;&lt;br /&gt;number_format (n [, x [, y, z]);&lt;br /&gt;&lt;br /&gt;with the parameter n is the number that will be formatted (the type is float or real, may also integers), x is the number of decimal digits in the decimal point (for real numbers), y is the string as a decimal separator, and z is the string as a group separator per thousand.&lt;br /&gt;&lt;br /&gt;Example:&lt;br /&gt;&lt;?&lt;br /&gt;  // display the Rp. 2.862.077.550,27&lt;br /&gt;  $number = 2862077550.2734&lt;br /&gt;  $bil = number_format ($number, 2,&#39;,&#39;,&#39;.&#39;);&lt;br /&gt;  echo &quot;Rp.&quot;. $ bil;&lt;br /&gt;?&gt;&lt;br /&gt;&lt;br /&gt;Easy is not it?&lt;br /&gt;Good luck ...</content><link rel='replies' type='application/atom+xml' href='http://wawan-wiharya.blogspot.com/feeds/8610380462133040162/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wawan-wiharya.blogspot.com/2010/01/formatting-number-into-currency.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9003996264535645171/posts/default/8610380462133040162'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9003996264535645171/posts/default/8610380462133040162'/><link rel='alternate' type='text/html' href='http://wawan-wiharya.blogspot.com/2010/01/formatting-number-into-currency.html' title='Formatting a number into currency?'/><author><name>MyOne</name><uri>http://www.blogger.com/profile/15533601510573101227</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQPn3WksoNKKWBOvRd9CGKKGnHYL9jWPtIGfIRDpQ2ntFkcPggkebwofs2PP172iRpr35hOSn3b3H_iZQny1KiXq5NYTNdTzhs2zg19aOfW3Tbb_HN64NiswgOv0np4w/s220/photo.jpg'/></author><thr:total>0</thr:total></entry></feed>