<?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>IndoLance.com &#187; Computers</title>
	<atom:link href="http://www.indolance.com/category/computers/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.indolance.com</link>
	<description>Internet, Tech, Gadgets, Money Making, and Stuff</description>
	<lastBuildDate>Sat, 14 Aug 2010 07:43:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Kill Your Screensaver! Now..!!</title>
		<link>http://www.indolance.com/kill-your-screensaver-now/</link>
		<comments>http://www.indolance.com/kill-your-screensaver-now/#comments</comments>
		<pubDate>Thu, 12 Jun 2008 20:31:47 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Life]]></category>
		<category><![CDATA[Truth]]></category>
		<category><![CDATA[Computer]]></category>

		<guid isPermaLink="false">http://www.indolance.com/kill-your-screensaver-now/</guid>
		<description><![CDATA[So you still use a screensaver? You know, those unforgettable flying toasters were invented to prevent burn-in, a permanent shadow branded into the phosphors of your monitor by a static image of, say, a spreadsheet that you left on your screen all weekend?  Well, Don Willmott, a Forecast Earth Correspondent write interesting subject about this.  [...] <a href="" title="">[ &#8594; ]</a> <a href="http://www.indolance.com/kill-your-screensaver-now/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p style="float:right;text-align:right;margin:0 0 10px 10px;"><a href="" title=""><img src="http://www.indolance.com/images/a.gif" alt="" /></a></p>
<p>So you still use a screensaver? You know, those unforgettable flying toasters were invented to prevent burn-in, a permanent shadow branded into the phosphors of your monitor by a static image of, say, a spreadsheet that you left on your screen all weekend?<br />
Well, Don Willmott, a Forecast Earth Correspondent write interesting subject about this. Below was his original posts.</p>
<p><a href="http://green.yahoo.com/blog/forecastearth/49/you-don-t-still-use-a-screen-saver-do-you.html" target="_blank" rel="external nofollow">You don&#8217;t still use a screen saver, do you?</a></p>
<p><em>By Don Willmott , Forecast Earth Correspondent Posted Wed Jun 11, 2008 6:36pm PDT</em></p>
<p>I&#8217;m happy that at this stage in my career I often find myself writing articles about energy-efficient ways to use computers, peripherals, gadgets, and consumer electronics. It makes me feel so, you know, virtuous.</p>
<p>Whenever I crank out a list of helpful hints, one of the first items I include is this obvious but often overlooked gem of advice: Kill your stupid screen saver. In the good old days of tube monitors, screen savers such as those unforgettable flying toasters were invented to prevent burn-in, a permanent shadow branded into the phosphors of your monitor by a static image of, say, a spreadsheet that you left on your screen all weekend.</p>
<p>Well, flat-screen LCD monitors don&#8217;t burn in, so if you still have flying toasters or an endlessly looping slide show of your adorable niece and nephew, you&#8217;re behind the times. When you&#8217;re not sitting in front of your monitor it should be off off off.</p>
<p>It warmed my heart to read at <a href="http://www.greendaily.com/2008/06/05/employer-removes-screen-savers-to-save-energy/" target="_blank" rel="external nofollow">Green Daily</a> that Telstra, the biggest phone company in Australia, has removed all the corporate screen savers from the 36,000 computers in its offices. What will happen? The change will cut tons of CO2, which they claim will be the equivalent of taking 140 cars off the road for a year. Good on ya, mate. Follow Telstra&#8217;s example. Let your flying toasters crash and burn.</p>
<p><em>Don Willmott&#8217;s blog posts are provided by LifeWire, a part of The New York Times Company.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.indolance.com/kill-your-screensaver-now/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Phony Sandra Dewi Nude Photos &#8211; The Case Study</title>
		<link>http://www.indolance.com/phony-sandra-dewi-nude-photos-the-case-study/</link>
		<comments>http://www.indolance.com/phony-sandra-dewi-nude-photos-the-case-study/#comments</comments>
		<pubDate>Tue, 27 May 2008 21:04:58 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Graphics]]></category>
		<category><![CDATA[Computer]]></category>
		<category><![CDATA[Fake Photos]]></category>

		<guid isPermaLink="false">http://www.indolance.com/phony-sandra-dewi-nude-photos-the-case-study/</guid>
		<description><![CDATA[The next case study is Sandra Dewi Bugil / Nude Photos. It getting harder and harder to find an example of the fake Sandra Dewi Nude / Bugil's photos. Here're some of them. This girl is one stunning actress this country have. With just quiet few appearances in one bigscreen and some TV movies, she became one of the most lovable celebrity in Indonesia.  [...] <a href="" title="">[ &#8594; ]</a> <a href="http://www.indolance.com/phony-sandra-dewi-nude-photos-the-case-study/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Our next case study about graphic alteration and photos manipulation is the Sandra Dewi Nude Photos. As usual, I made a google a bit and try to find some good example about this very topic. Guess what? There&#8217;s a blog which did exactly as I am ( I mean, What I &#8216;m gonna do right now) doing a case study regarding the graphic forgery of some celebrities. He &#8216;s already write this topic about Sandra Dewi bugil photos faking, and use the same source as the basic case studying. No need to wait any further, I send him a request to ask his permission to put his writing in here, as a guest writer. He said okay! How awesome is that! So <a href="http://www.amapanet.com/sandra-dewi-s-fabricated-nude-photos-uncovered.html" target="_blank">this topic was actually written by Jason of Amapanet.com</a>. With his full permission, here goes..</p>
<p>This girl is one stunning actress this country have. With just quiet few appearance in one bigscreen and some TV movies, she became one of the most lovable celebrity in Indonesia. I &#8216;m talkin about Sandra Dewi. One innocent pretty face that boost her carrier since her first debut in Indonesian movies Quickie Express, 2007.<br />
Enough of the bio stuff, let&#8217;s get to the subject of this topic. </p>
<p><b>Sandra Dewi &#8216;s Nude Photos are Fabricated?</b></p>
<p style="width:570px;display:block;padding-left:60px;float:left;"><a href="" title="" style="border:none;"><img src="http://www.indolance.com/images/sandra-dewi-bugil-nude-faked.jpg" alt="Sandra Dewi Bugil / Nude Photos Faked" title="Sandra Dewi Bugil Photos Faked"/></a></p>
<p>That&#8217;s for sure, a big Yes. They&#8217;re all faked. Every graphic artists in this planet could conclude that in just one blink of an eye. There &#8216;re many discussion whether it&#8217;s faked or real, the press conference were officially gathered, and it was a bit crowded back then. Let&#8217;s take a look at how these Sandra Dewi&#8217;s nude photos created, from the graphic point of view.</p>
<p><b>5 Main Points We should take a look</b></p>
<blockquote><p><b>1. Mismatched Background</b><br />
Look at the sky, look at the ground, look at everything behind the subject(s) of the photo in question. If the blue hues of a clear day don&#8217;t match up or if the grass is actually greener on the other side of a celebrity&#8217;s body in a photo, it could be a misrepresentation of the truth. </p>
<p><b>2. Erratic Light Sources and Shadows</b><br />
Notice how light affects the subject(s) of the picture. Does the light source(s) create even, uniform shadows or do shaded areas seem to have a mind of their own? If the shadows of celebrities cast in a picture don&#8217;t seem consistent, there&#8217;s a good chance that it&#8217;s a fake. </p>
<p><b>3. Mismatched Skin tones</b><br />
This one could be the work of a bad make-up artist or tanning experience, but regardless, mismatched skin tones of a photo&#8217;s subject are usually the biggest clue that a celebrity&#8217;s head has been put on the body of another model. </p>
<p><b>4. Disproportionate Body Shape</b><br />
If you put Tom Cruise&#8217;s head on Brad Pitt&#8217;s body nothing adds up to the truth. Pay attention to they way a celebrity&#8217;s body appears in a photo and compare it to confirmed real photos of that star. Do they look the same? If not, chances are that the photo under scrutiny isn&#8217;t genuine. </p>
<p><b>5. Unnatural Body Position</b><br />
There are only so many ways the human body can bend. When Paris Hilton&#8217;s head is tilted one way, her body can&#8217;t go the other and if her arms are out to her sides, her torso will appear differently than it would if her arms were above her head. Look at the way a star is posing and if the pose is impossible to mimic the photo has probably been altered. </p></blockquote>
<p><b>Some Dumb Questions about These Fabricated Photos</b></p>
<p><i>Is Sandra Dewi nude / bugil picture real?</i> No.<br />
<i>Is Sandra Dewi posing nude / bugil for real?</i> No, and never will be. ( I assume )<br />
<i>Where we can I get Sandra Dewi nude pictures?</i> They &#8216;re all spreaded around the net, and are all fake. Why would you need one of those fake Sandra Dewi&#8217;s Nude photos anyway?</p>
<p>The conclusion? It was officially announced that all Sandra Dewi&#8217;s Nude pictures are fabricated.</p>
<p>Interesting, eh? Thanks Jason!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.indolance.com/phony-sandra-dewi-nude-photos-the-case-study/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP: Simple Dynamic Graphs with PHP + MySql</title>
		<link>http://www.indolance.com/php-simple-dynamic-graphs-with-php-mysql/</link>
		<comments>http://www.indolance.com/php-simple-dynamic-graphs-with-php-mysql/#comments</comments>
		<pubDate>Fri, 23 May 2008 00:03:42 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[PHP & SQL]]></category>
		<category><![CDATA[Programming Stuff]]></category>
		<category><![CDATA[MySql]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.indolance.com/php-simple-dynamic-graphs-with-php-mysql/</guid>
		<description><![CDATA[Graphing in PHP has always been an annoyance for me - while it would be cool feature to have, the need doesn’t come up nearly enough to warrant paying the exorbitant fees associated with most commercial graphing libraries. Besides, commercial PHP libraries always bring out the miser in me - it just doesn’t seem to fit with the open source model.  [...] <a href="" title="">[ &#8594; ]</a> <a href="http://www.indolance.com/php-simple-dynamic-graphs-with-php-mysql/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p style="float:left;text-align:left;margin:0 10px 10px 0;"><a href="" title=""><img src="http://www.indolance.com/images/coding.jpg" alt="" /></a></p>
<p>Graphing in PHP has always been an annoyance for me &#8211; while it would be cool feature to have, the need doesn’t come up nearly enough to warrant paying the exorbitant fees associated with most commercial graphing libraries. Besides, commercial PHP libraries always bring out the miser in me &#8211; it just doesn’t seem to fit with the open source model. Enter <a href="http://www.ebrueggeman.com/phpgraphlib/" target="_blank" rel="external nofollow">Elliot Brueggeman’s Lightweight PHP Graphing Library</a> &#8211; with it I’ve finally found a PHP graphing library that’s simple to operate, generates image-based graphs, and is free to boot.</p>
<p>This is a graph of future email client requests on <a href="http://www.xobni.com/" target="_blank" rel="external nofollow">xobni.com</a>. It tells us what clients other than Outlook people are using to manage their email, and thus helps us plan out future directions for Xobni Insight.</p>
<p>Elliot’s graphing library supports bar, line, and pie charts. As far as I can tell, it doesn’t yet support multiple lines per graph, and the graphs are not anti-aliased (yuck!). But for admin-only graphs, its simplicity is its best asset. </p>
<p><u>The dynamic graph produced by this code below</u> :</p>
<p><code>include("lib/phpgraphlib.php");<br />
include("lib/phpgraphlib_pie.php");<br />
$title = "Future Requests by Client";<br />
$dataArray=array();<br />
$sql = "SELECT client,COUNT(id) as counter FROM Users GROUP BY client";<br />
$result = mysql_query($sql);<br />
while ($row = mysql_fetch_assoc($result)) {<br />
	$counter = $row["counter"];<br />
	$dataArray[$row["which_client"]]=$counter;<br />
}<br />
$graph=new PHPGraphLibPie(265,265);<br />
$graph->addData($dataArray);<br />
$graph->setTitle($title);<br />
$graph->setLabelTextColor("50,50,50");<br />
$graph->setLegendTextColor("50,50,50");<br />
$graph->createGraph();</code></p>
<p>That’s all there is to creating an image-based graph with Elliot’s library. In some ways, I prefer this over the <a href="http://www.ebrueggeman.com/phpgraphlib/" target="_blank" rel="external nofollow">flash charting library</a> I’ve used in the past &#8211; while the flash animation is beautiful, it’s nice that you can just right click and save these image-based graphs for use in powerpoint presentations, etc. Besides, while it took me a good 5 hours to set up the flash library, I had this set up in less than an hour of experimentation.</p>
<p><a href="http://www.ebrueggeman.com/phpgraphlib/downloads.php" target="_blank" rel="external nofollow">Download needed files here</a></p>
<p>There are a few other svg+css+javascript <a href="http://dragan.yourtree.org/blog/en/2007/03/31/ajax-mgraph/" target="_blank" rel="external nofollow">graphing libraries</a> that I plan to check out soon; but for now, the Lightweight PHP graphing library did the trick by producing simple graphs with relatively little effort.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.indolance.com/php-simple-dynamic-graphs-with-php-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Phony Angelina Jolie Nude Pics &#8211; The Case Study</title>
		<link>http://www.indolance.com/phony-angelina-jolie-nude-pics-the-case-study/</link>
		<comments>http://www.indolance.com/phony-angelina-jolie-nude-pics-the-case-study/#comments</comments>
		<pubDate>Thu, 10 Apr 2008 18:30:21 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Graphics]]></category>
		<category><![CDATA[Truth]]></category>
		<category><![CDATA[Computer]]></category>
		<category><![CDATA[Fake Photos]]></category>

		<guid isPermaLink="false">http://www.indolance.com/phony-angelina-jolie-nude-pics-the-case-study/</guid>
		<description><![CDATA[Our first case study about graphic alteration and photos manipulation is the Angelina Jolie's Nude Photos. I made a google a bit and found some good example about this very topic. The basic I used is my own knowledge about graphic and the recent guidelines I read and re-write : "5 Ways to Spot a Fake Celebrity Photo". [...] <a href="" title="">[ &#8594; ]</a> <a href="http://www.indolance.com/phony-angelina-jolie-nude-pics-the-case-study/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p style="float:right;text-align:right;margin:0 0 0 10px;"><a href="" title=""><img src="http://www.indolance.com/images/a.gif" alt="" /></a></p>
<p>Our first case study about graphic alteration and photos manipulation is the Angelina Jolie&#8217;s Nude Photos. I made a google a bit and found some good example about this very topic. The basic I used is my own knowledge about graphic and the recent guidelines I read and re-write : &#8220;<a href="http://www.indolance.com/5-ways-to-spot-a-fake-celebrity-photo/" title="5 Ways to Spot a Fake Celebrity Photo">5 Ways to Spot a Fake Celebrity Photo</a>&#8220;.</p>
<p><b>Disproportionate Body Shape</b></p>
<p>This case study will take the Disproportionate Body Shape topic. &#8220;Pay attention to they way a celebrity’s body appears in a photo and compare it to confirmed real photos of that star. Do they look the same? If not, chances are that the photo under scrutiny isn’t genuine.&#8221;</p>
<p>Well, I actually saved only 15 fake Angelina Jolie&#8217;s Nude photos, but I &#8216;ll use 4 perfect samples for this messy un-proportionate body faking. The manipulation using the very basic technique, putting Angelina Jolie&#8217;s head to somebody else&#8217;s body, in some position. You may take a look at the large version of these pictures below:</p>
<p><i>Click to open the large picture.</i></p>
<p><a href="http://www.indolance.com/images/a.gif" title=" 1" target="_blank" style="border:none;"><img src="http://www.indolance.com/images/a.gif" alt=" 1" /></a> <a href="http://www.indolance.com/images/a.gif" title=" 2" target="_blank" style="border:none;"><img src="http://www.indolance.com/images/a.gif" alt=" 2" /></a> <a href="http://www.indolance.com/images/a.gif" title=" 3" target="_blank" style="border:none;"><img src="http://www.indolance.com/images/a.gif" alt=" 3" /></a> <a href="http://www.indolance.com/images/a.gif.jpg" title=" 4" target="_blank" style="border:none;"><img src="http://www.indolance.com/images/a.gif" alt=" 4" /></a></p>
<p><b>Some Notes</b></p>
<p>From their so called work of art final released pictures it seems this forgery artists don&#8217;t know exactly what is the word body proportion means. As you may recognize in a quick sight, all the heads always a bit tinier, or we must say too tiny for the body they put into.</p>
<p>The large pictures, I increased the highlight/shadow level into 57%, and see what&#8217;s goin on. The original tone of hairs and shading showed. They might not even notice that! What a graphic artist, eh?</p>
<p>The worst work ever is the picture 3. It still leave the original background of the head. And the neck!! Man..!! That&#8217;s what people called putting the head off?</p>
<p><em>Alrite, see you with the next Celebrity Nude photos case study.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.indolance.com/phony-angelina-jolie-nude-pics-the-case-study/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>5 Ways to Spot a Fake Celebrity Photo</title>
		<link>http://www.indolance.com/5-ways-to-spot-a-fake-celebrity-photo/</link>
		<comments>http://www.indolance.com/5-ways-to-spot-a-fake-celebrity-photo/#comments</comments>
		<pubDate>Thu, 03 Apr 2008 18:05:26 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Graphics]]></category>
		<category><![CDATA[Truth]]></category>
		<category><![CDATA[Computer]]></category>
		<category><![CDATA[Fake Photos]]></category>

		<guid isPermaLink="false">http://www.indolance.com/5-ways-to-spot-a-fake-celebrity-photo/</guid>
		<description><![CDATA[This evening I just browse around, and got into this interesting writing about ways to recognize whether the our favorite celebrity photo real or phony. Don’t be duped by another doctored photo! More often than not, fake celebrity pics are produced to generate publicity for whatever publication is printing the image. Recognizing what is real and fake in a photo requires a  […] <a href="" title="">[ &#8594; ]</a> <a href="http://www.indolance.com/5-ways-to-spot-a-fake-celebrity-photo/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p style="float:right;text-align:right;margin:0 0 0 10px;"><a href="" title=""><img src="http://www.indolance.com/images/a.gif" alt="" /></a></p>
<p>This evening I just browse around, and got into this interesting writing about <a href="http://celebrity.lovetoknow.com/Fake_Celebrity_Pics" target="_blank" title="How to Spot a Phony Celebrity Photo">ways to recognize whether the our favorite celebrity photo real or phony</a>.</p>
<p>Don&#8217;t be duped by another doctored photo! More often than not, fake celebrity pics are produced to generate publicity for whatever publication is printing the image. Recognizing what is real and fake in a photo requires a little attention to subtle details. Below are 5 tell-tale signs that a photo has been altered.</p>
<ol>
<li><b>Mismatched Background.</b><br />
     Look at the sky, look at the ground, look at everything behind the subject(s) of the photo in question. If the blue hues of a clear day don&#8217;t match up or if the grass is actually greener on the other side of a celebrity&#8217;s body in a photo, it could be a misrepresentation of the truth.</li>
<li><b>Erratic Light Sources and Shadows.</b><br />
     Notice how light affects the subject(s) of the picture. Does the light source(s) create even, uniform shadows or do shaded areas seem to have a mind of their own? If the shadows of celebrities cast in a picture don&#8217;t seem consistent, there&#8217;s a good chance that it&#8217;s a fake.</li>
<li><b>Mismatched Skin tones.</b><br />
     This one could be the work of a bad make-up artist or tanning experience, but regardless, mismatched skin tones of a photo&#8217;s subject are usually the biggest clue that a celebrity&#8217;s head has been put on the body of another model.</li>
<li><b>Disproportionate Body Shape.</b><br />
     If you put Tom Cruise&#8217;s head on Brad Pitt&#8217;s body nothing adds up to the truth. Pay attention to they way a celebrity&#8217;s body appears in a photo and compare it to confirmed real photos of that star. Do they look the same? If not, chances are that the photo under scrutiny isn&#8217;t genuine.</li>
<li><b>Unnatural Body Position.</b><br />
     There are only so many ways the human body can bend. When Paris Hilton&#8217;s head is tilted one way, her body can&#8217;t go the other and if her arms are out to her sides, her torso will appear differently than it would if her arms were above her head. Look at the way a star is posing and if the pose is impossible to mimic the photo has probably been altered.</li>
</ol>
<p>Phony photos have probably been around since the camera was invented, but in the digital world of photo-editing, photo forgeries are fairly common, especially online, but can also appear in magazines, newspapers and even in print ads. If you&#8217;re thinking tabloids hold the monopoly on faking celebrity pics, well.. you are mistaken.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.indolance.com/5-ways-to-spot-a-fake-celebrity-photo/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Javascript : Convert Strings to Numbers</title>
		<link>http://www.indolance.com/javascript-convert-strings-to-numbers/</link>
		<comments>http://www.indolance.com/javascript-convert-strings-to-numbers/#comments</comments>
		<pubDate>Sun, 24 Feb 2008 22:39:54 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Programming Stuff]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.indolance.com/javascript-convert-strings-to-numbers/</guid>
		<description><![CDATA[How to convert strings to numbers in JavaScript? To convert a string to a number, use the JavaScript function parseFloat (for conversion to a floating-point number) or parseInt (for conversion to an integer). Syntax: parseFloat('string') parseInt( 'string' [, base] )
 [...] <a href="" title="">[ &#8594; ]</a> <a href="http://www.indolance.com/javascript-convert-strings-to-numbers/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p style="float:left;text-align:left;margin:0 10px 10px 0;"><a href="" title=""><img src="http://www.indolance.com/images/coding.jpg" alt="" /></a></p>
<p>How to convert strings to numbers in JavaScript? To convert a string to a number, use the JavaScript function parseFloat (for conversion to a floating-point number) or parseInt (for conversion to an integer).</p>
<p><u>Syntax:</u></p>
<p><code>parseFloat(&#39;&#39;string&#39;&#39;)<br />
parseInt( &#39;&#39;string&#39;&#39; [, base] )</code></p>
<p><strong>parseFloat</strong></p>
<p>The argument of parseFloat must be a string or a string expression. The result of parseFloat is the number whose decimal representation was contained in that string (or the number found in the beginning of the string). If the string argument cannot be parsed as a decimal number, the results will be different in different browsers (either 0 or NaN).</p>
<p><strong>parseInt</strong></p>
<p>The first argument of parseInt must be a string or a string expression. The result returned by parseInt is an integer whose representation was contained in that string (or the integer found in the beginning of the string).</p>
<p>The second argument (base), if present, specifies the base (radix) of the number whose string representation is contained in the string. The base argument can be any integer from 2 to 36. If there is only one argument, the number base is detected according to the general JavaScript syntax for numbers. Strings that begin with 0x or -0x are parsed as hexadecimals; strings that begin with 0 or -0 are parsed as octal numbers. All other strings are parsed as decimal numbers. If the string argument cannot be parsed as an integer, the results will be different in different browsers (either 0 or NaN).</p>
<p><strong>Examples</strong></p>
<p>Comments in each line give the conversion results.</p>
<p><code>parseFloat(’2.72lb’) // 2.72<br />
parseFloat(&#39;45.7&#39;) // 45.7<br />
parseFloat(&#39;045.7&#39;) // 45.7<br />
parseFloat(&#39;0×45.7&#39;) // 0<br />
parseFloat(&#39;.8&#39;) // 0.8<br />
parseFloat(&#39;0.1e4&#39;) // 1000<br />
parseInt(&#39;987.27&#39;) // 987<br />
parseInt(&#39;23&#39;) // 23<br />
parseInt(&#39;023&#39;,10) // 23<br />
parseInt(&#39;77&#39;,8) // 63 (= 7 + 7*8)<br />
parseInt(&#39;077&#39;) // 63 (= 7 + 7*8)<br />
parseInt(&#39;77&#39;,16) // 119 (= 7 + 7*16)<br />
parseInt(&#39;0×77&#39;) // 119 (= 7 + 7*16)<br />
parseInt(&#39;099&#39;) // 0 (9 is not an octal digit)<br />
parseInt(&#39;99&#39;,8) // 0 or NaN, depending on the platform<br />
parseInt(&#39;0.1e6&#39;) // 0<br />
parseInt(’ZZ’,36) // 1295 (= 35 + 35*36)</code></p>
<p><strong>Important Notes</strong></p>
<p>If you prompt the user for a number, using the prompt function, what you actually get is a string that contains the “number”. This is also the case, if you look at the value of a text field on a form. This means that before you can use the number, you must convert it to a “real” number.<br />
JavaScript will convert a string to a number for you automatically,however it may not handle it properly, especially if there is a ‘+’ operator involved. Remember the ‘+’ operator adds numbers and cpmcatenates strings.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.indolance.com/javascript-convert-strings-to-numbers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Javascript : Convert numbers to strings</title>
		<link>http://www.indolance.com/javascript-convert-numbers-to-strings/</link>
		<comments>http://www.indolance.com/javascript-convert-numbers-to-strings/#comments</comments>
		<pubDate>Tue, 19 Feb 2008 22:15:55 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Programming Stuff]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.indolance.com/javascript-convert-numbers-to-strings/</guid>
		<description><![CDATA[So you have a float or interger value, and need it to convert 'em to string. How to convert a float or interger value to string using javascript? The simplest way to convert any variable to a string is to add an empty string to that variable, for example: a = a+'' // This converts a to string  [...]
<a href="" title="">[ &#8594; ]</a> <a href="http://www.indolance.com/javascript-convert-numbers-to-strings/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p style="float:left;text-align:left;margin:0 10px 10px 0;"><a href="" title=""><img src="http://www.indolance.com/images/coding.jpg" alt="" /></a></p>
<p><strong>Convert a Float or Interger value to String</strong></p>
<p>So you have a float or interger value, and need it to convert &#8216;em to string. How to convert a float or interger value to string using javascript? The simplest way to convert any variable to a string is to add an empty string to that variable, for example:</p>
<p><code>a = a+'' // This converts a to string<br />
b += '' // This converts b to string</code></p>
<p>Or you can use toString() function.</p>
<p><code>var a = 6.23;<br />
a.toString();</code></p>
<p>This will return the string “6.23?.</p>
<p>The resultant string will hold the decimal representation of the original number.</p>
<p><strong>Standard Method Number.toString</strong></p>
<p>For converting numbers to binary, octal, or hexadecimal strings (or to any other base) you can use, in JavaScript 1.1, the standard method Number.toString(radix) for converting a number to a string representing that number in a non-decimal number system (e.g. to a string of binary, octal or hexadecimal digits). For example:</p>
<p><code>a = (50274).toString(16) // this gives "c462"<br />
b = (76).toString(8) // this gives "114"<br />
c = (7623).toString(36) // this gives "5vr"<br />
d = (100).toString(2) // this gives "1100100"</code></p>
<p>Alright, goodluck!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.indolance.com/javascript-convert-numbers-to-strings/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
