<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2" -->
<rss version="2.0">
    <channel>
        <title>Lowyat.NET: Latest topics by wednesday</title>
        <description></description>
        <link>http://forum.lowyat.net/</link>
        <lastBuildDate>Mon, 15 Jun 2026 06:22:10 +0800</lastBuildDate>
        <generator>FeedCreator 1.7.2</generator>
        <item>
            <title>Double (fp) to String</title>
            <link>http://forum.lowyat.net/topic/944868</link>
            <description>Following is a function to convert any given floating-point number to string-form. I am not sure whether this code is 100% bug free as I am still testing for any errors.. Can you all help me to test as well.. Thanks.&lt;br /&gt;&lt;br /&gt;&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;&lt;br /&gt;#ifndef _CVTBUFSIZE&lt;br /&gt;#define _CVTBUFSIZE 309 + 40&lt;br /&gt;#endif&lt;br /&gt;&lt;br /&gt;char* DoubleToString&amp;#40; double value, int precision &amp;#41;&lt;br /&gt;{&lt;br /&gt; &amp;nbsp; &amp;nbsp;char *str_out = NULL, *head = NULL;&lt;br /&gt; &amp;nbsp; &amp;nbsp;int i_part = 0, index = 0, extract = 0,&lt;br /&gt; &amp;nbsp;limit = 0, offset = 0, bZeroLead = 0;&lt;br /&gt; &amp;nbsp; &amp;nbsp;double f_part = 0.0;&lt;br /&gt;	&lt;br /&gt;	// _CVTBUFSIZE constant is used because I think it is the maximum size &lt;br /&gt;	// for all platforms, I believe..&lt;br /&gt; &amp;nbsp; &amp;nbsp;head = str_out = calloc&amp;#40; _CVTBUFSIZE, sizeof&amp;#40;char&amp;#41; &amp;#41;;&lt;br /&gt;	// Make sure that the precision is within acceptable range..&lt;br /&gt;	if &amp;#40; precision &amp;#60;= 0 || precision &amp;#62; 40 &amp;#41; precision = 6;&lt;br /&gt;	// precision = 3, limit = 4.. 2.333&amp;#39;5&amp;#39; &amp;#60;&amp;#60; for rounding purpose..&lt;br /&gt;	limit = precision + 1; &lt;br /&gt;	// to check whether it&amp;#39;s negative..&lt;br /&gt; &amp;nbsp; &amp;nbsp;if &amp;#40; value &amp;#60; 0 &amp;#41;&lt;br /&gt; &amp;nbsp; &amp;nbsp;{&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;*str_out = &amp;#39;-&amp;#39;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;++str_out;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;value *= -1.0;&lt;br /&gt; &amp;nbsp; &amp;nbsp;}&lt;br /&gt;	// extract the integer part&amp;#58; 123.456 &amp;#62;&amp;#62; &amp;#39;123&amp;#39;&lt;br /&gt; &amp;nbsp; &amp;nbsp;extract = i_part = &amp;#40;int&amp;#41; value;&lt;br /&gt;	// this is to make sure that the output string has a prefix &amp;#39;0&amp;#39; if&lt;br /&gt;	// the input value = 0.xxxx&lt;br /&gt;	if &amp;#40; &amp;#33;extract &amp;#41;&lt;br /&gt;	{&lt;br /&gt; &amp;nbsp;bZeroLead = 1;&lt;br /&gt; &amp;nbsp;*str_out = &amp;#39;0&amp;#39;;&lt;br /&gt; &amp;nbsp;++str_out;&lt;br /&gt;	}&lt;br /&gt;	// fraction part extraction&amp;#58; 123.456 &amp;#62;&amp;#62; &amp;#39;0.456&amp;#39;&lt;br /&gt; &amp;nbsp; &amp;nbsp;while &amp;#40; limit &amp;#41; // limit is always more than prec by 1..&lt;br /&gt; &amp;nbsp; &amp;nbsp;{&lt;br /&gt;	f_part = value - &amp;#40;double&amp;#41; i_part;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;value = f_part * 10;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;i_part = &amp;#40;int&amp;#41; value;&lt;br /&gt; &amp;nbsp;if &amp;#40; &amp;#33;extract &amp;amp;&amp;amp; &amp;#33;i_part &amp;#41;&lt;br /&gt; &amp;nbsp;{&lt;br /&gt; &amp;nbsp;	str_out&amp;#91;offset&amp;#93; = &amp;#39;0&amp;#39;;&lt;br /&gt; &amp;nbsp;	++offset;&lt;br /&gt; &amp;nbsp;}&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;extract = extract * 10 + i_part; // add the int and frac to be one int. unity&amp;#33;&lt;br /&gt; &amp;nbsp;--limit;&lt;br /&gt; &amp;nbsp; &amp;nbsp;}&lt;br /&gt;	// rounding up code, it took me some time to simplify the code to such&amp;#58;&lt;br /&gt;	if &amp;#40; &amp;#40; extract % 10 &amp;#41; &amp;#62;= 5 &amp;#41;&lt;br /&gt; &amp;nbsp;extract = &amp;#40; extract / 10 &amp;#41; + 1;&lt;br /&gt;	else&lt;br /&gt; &amp;nbsp;extract /= 10; // this is necessary because limit = precision + 1;&lt;br /&gt;&lt;br /&gt;	// convert the united numbers to string&lt;br /&gt;	_itoa&amp;#40; extract, &amp;amp;str_out&amp;#91;offset&amp;#93;, 10 &amp;#41;;&lt;br /&gt;	// if the fractional part is 0.999999 and precision is 5,&lt;br /&gt;	// rounding up will yield 1.000000, so with this,&lt;br /&gt;	// the result is verified to avoid 0.10000 which ought to be&amp;#58; 1.00000&lt;br /&gt;	if &amp;#40; bZeroLead &amp;#41;&lt;br /&gt;	{&lt;br /&gt; &amp;nbsp;if &amp;#40; &amp;#40;int&amp;#41; strlen&amp;#40; str_out &amp;#41; &amp;#62; precision &amp;#41;&lt;br /&gt; &amp;nbsp;{&lt;br /&gt; &amp;nbsp;	*str_out = &amp;#39;0&amp;#39;;&lt;br /&gt; &amp;nbsp;	*&amp;#40; str_out - 1 &amp;#41; = &amp;#39;1&amp;#39;;&lt;br /&gt; &amp;nbsp;	*&amp;#40; str_out + strlen&amp;#40; str_out &amp;#41; - 1 &amp;#41; = 0;&lt;br /&gt; &amp;nbsp;}&lt;br /&gt;	}&lt;br /&gt;	// compute the starting index of the fractional part..&lt;br /&gt;	index += strlen&amp;#40; str_out &amp;#41; - precision;&lt;br /&gt;	// move the fractional part backwards by 1.. memmove is used instead&lt;br /&gt;	// of a loop, better and easier..hehe..&lt;br /&gt;	memmove&amp;#40; &amp;amp;str_out&amp;#91;index + 1&amp;#93;, &amp;amp;str_out&amp;#91;index&amp;#93;, &lt;br /&gt; &amp;nbsp;strlen&amp;#40; &amp;amp;str_out&amp;#91;index&amp;#93; &amp;#41; * sizeof&amp;#40;char&amp;#41; &amp;#41;; // sizeof is used for safety purpose..&lt;br /&gt;	// finally insert the &amp;#39;.&amp;#39; a.k.a decimal point..&lt;br /&gt;	str_out&amp;#91;index&amp;#93; = &amp;#39;.&amp;#39;;&lt;br /&gt;&lt;br /&gt; &amp;nbsp; &amp;nbsp;return head;&lt;br /&gt;}&lt;br /&gt;&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;</description>
            <author>wednesday</author>
            <category>Codemasters</category>
            <pubDate>Mon, 23 Feb 2009 02:21:59 +0800</pubDate>
        </item>
        <item>
            <title>Kissing scenes in dramas/movies</title>
            <link>http://forum.lowyat.net/topic/937023</link>
            <description>Heh.. Just really curious, are the kissing scenes in most of the dramas/movies real? To me, if it is camera trick, it really doesn&amp;#39;t look like camera trick.. It seems very real...</description>
            <author>wednesday</author>
            <category>Serious Kopitiam</category>
            <pubDate>Sun, 15 Feb 2009 21:07:53 +0800</pubDate>
        </item>
        <item>
            <title>International Link down ?</title>
            <link>http://forum.lowyat.net/topic/364413</link>
            <description>Is the international link down again ? I can&amp;#39;t surf any  other sites than the local ones.</description>
            <author>wednesday</author>
            <category>Networks and Broadband</category>
            <pubDate>Wed, 08 Nov 2006 14:06:46 +0800</pubDate>
        </item>
        <item>
            <title>Streaming Download</title>
            <link>http://forum.lowyat.net/topic/344362</link>
            <description>Hey any software to rip streams ? Like when I watch live service from Cityharvest.tv, due to the slow international link, it&amp;#39;s really a pain in ass so I decided to download the whole service to watch but then I can&amp;#39;t download because the video is hosted of a streaming server. So how do I rip the video from the site?&lt;br /&gt;&lt;br /&gt;p/s: Mod delete this thread if I&amp;#39;m asking the wrong thing. Thanks.</description>
            <author>wednesday</author>
            <category>Software</category>
            <pubDate>Sat, 23 Sep 2006 00:35:56 +0800</pubDate>
        </item>
        <item>
            <title>Exporting my posts.</title>
            <link>http://forum.lowyat.net/topic/328010</link>
            <description>Hey se7en, is it possible for me to export all my posts ? I found my own host so I decided to host the blog myself so I have more control over it. Thanks.</description>
            <author>wednesday</author>
            <category>Content Creators, Blogmasters &amp;amp; Webmasters</category>
            <pubDate>Wed, 16 Aug 2006 22:18:47 +0800</pubDate>
        </item>
        <item>
            <title>Can I hide my blog</title>
            <link>http://forum.lowyat.net/topic/318793</link>
            <description>Hey admins, can I hide my blog ? It is shown at public blog listing there, it&amp;#39;s my private blog, contains alot of private stuff, so if possible can I hide my blog ?</description>
            <author>wednesday</author>
            <category>Content Creators, Blogmasters &amp;amp; Webmasters</category>
            <pubDate>Wed, 26 Jul 2006 16:47:54 +0800</pubDate>
        </item>
        <item>
            <title>lmao SHUFFLE</title>
            <link>http://forum.lowyat.net/topic/306593</link>
            <description>&lt;a href='http://www.youtube.com/watch?v=ss9-S0DANnk' target='_blank'&gt;http://www.youtube.com/watch?v=ss9-S0DANnk&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;lmao. how lame.</description>
            <author>wednesday</author>
            <category>Jokes Heaven</category>
            <pubDate>Tue, 27 Jun 2006 14:39:26 +0800</pubDate>
        </item>
        <item>
            <title>Capture screenshot for movie</title>
            <link>http://forum.lowyat.net/topic/284415</link>
            <description>Hey, any program to capture movie screeenshots ?</description>
            <author>wednesday</author>
            <category>Multimedia</category>
            <pubDate>Thu, 04 May 2006 11:53:14 +0800</pubDate>
        </item>
        <item>
            <title>Sri KL or Sri Sedaya</title>
            <link>http://forum.lowyat.net/topic/281577</link>
            <description>Hey, just wondering Sri KL or Sri sedaya, do they have form 6 ?</description>
            <author>wednesday</author>
            <category>Education Essentials</category>
            <pubDate>Thu, 27 Apr 2006 12:36:48 +0800</pubDate>
        </item>
        <item>
            <title>Dampening Material</title>
            <link>http://forum.lowyat.net/topic/273869</link>
            <description>Hi bros, any good dampening material to recommend for my sub ? Currently  my sub box doesnt have any dampening.</description>
            <author>wednesday</author>
            <category>Audiophiles</category>
            <pubDate>Sun, 09 Apr 2006 00:02:53 +0800</pubDate>
        </item>
        <item>
            <title>closed, settled.</title>
            <link>http://forum.lowyat.net/topic/273825</link>
            <description>porblem  solved. close time.</description>
            <author>wednesday</author>
            <category>ICE</category>
            <pubDate>Sat, 08 Apr 2006 22:16:09 +0800</pubDate>
        </item>
        <item>
            <title>HDDLife</title>
            <link>http://forum.lowyat.net/topic/273267</link>
            <description>Lol, kena conned by that stupid program, the program reports that my maxtor&amp;#39;s health is 85% but the harddisk itsefl failed to load twice, my computer major lags are caused by this stupid harddisk and the HDDLife can still report my maxtor harddisk is still in good position.  &lt;!--emo&amp;:x--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/doh.gif' border='0' style='vertical-align:middle' alt='doh.gif' /&gt;&lt;!--endemo--&gt;</description>
            <author>wednesday</author>
            <category>Software</category>
            <pubDate>Fri, 07 Apr 2006 13:09:44 +0800</pubDate>
        </item>
        <item>
            <title>PMPO and RMS</title>
            <link>http://forum.lowyat.net/topic/272464</link>
            <description>Whats PMPO and RMS ? 200W PMPO is how much for RMS ?</description>
            <author>wednesday</author>
            <category>Audiophiles</category>
            <pubDate>Wed, 05 Apr 2006 15:59:24 +0800</pubDate>
        </item>
        <item>
            <title>College vs Form 6</title>
            <link>http://forum.lowyat.net/topic/272161</link>
            <description>Hey dudes, I need help here, I dont know whether this was posted before or not but anyway, I&amp;#39;m lost, should I go Form 6 or College ? I dont know what to study, I had thought of IT before and Financial also but both also I scare later halfway I lost interest, IT since I std 6 I&amp;#39;m quite good at it, I started VB when I was F1 and F3 I moved on to C then halfway F4 I stopped suddenly, I also dont know why. Any advice ?</description>
            <author>wednesday</author>
            <category>Education Essentials</category>
            <pubDate>Tue, 04 Apr 2006 21:49:36 +0800</pubDate>
        </item>
        <item>
            <title>Car Amps</title>
            <link>http://forum.lowyat.net/topic/267767</link>
            <description>Hey, can a car amp driive a normal pc speaker, as in 6&amp;quot; and 12&amp;quot; speakers, do I need a seperate preAmp or soemthing ?</description>
            <author>wednesday</author>
            <category>Audiophiles</category>
            <pubDate>Fri, 24 Mar 2006 21:30:32 +0800</pubDate>
        </item>
        <item>
            <title>LYN Drummers Paradise</title>
            <link>http://forum.lowyat.net/topic/161654</link>
            <description>All drummers should post at here to notify everyone ur a drummer eventhough im still learning. i know this lame.</description>
            <author>wednesday</author>
            <category>Musicians</category>
            <pubDate>Tue, 31 May 2005 10:30:41 +0800</pubDate>
        </item>
    </channel>
</rss>
