<?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/'><id>tag:blogger.com,1999:blog-1705051721030116110.post9079430491027418615..comments</id><updated>2011-12-30T19:58:19.698-08:00</updated><category term='Front Page Server Extensions'/><category term='Recommended Reading'/><category term='Add-ons'/><category term='Multiline textbox'/><category term='MS Dynamics CRM'/><category term='multiline'/><category term='SharePoint'/><category term='Twitter Greasmonkey JavaScript'/><category term='How to'/><category term='Workflow'/><category term='SIC'/><category term='RPC'/><category term='Long Running Job'/><category term='API'/><category term='Error Handling'/><category term='text box'/><category term='textbox'/><category term='multi-line'/><category term='c#'/><category term='HK-RCA 2009'/><category term='Progress Page'/><category term='Upload files'/><category term='picklist'/><category term='MOSS'/><category term='Lists web service'/><category term='Browser-enabled forms'/><category term='NAICS'/><category term='Multi-line text box'/><category term='KB931426 Workaround'/><category term='InfoPath'/><category term='Impersonation'/><title type='text'>Comments on Development Hole: Rounding to the nearest 1000 in C#</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://geek.hubkey.com/feeds/9079430491027418615/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1705051721030116110/9079430491027418615/comments/default'/><link rel='alternate' type='text/html' href='http://geek.hubkey.com/2009/02/rounding-to-nearest-1000-in-c.html'/><author><name>txs8311</name><uri>http://www.blogger.com/profile/07046898420109468604</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>3</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1705051721030116110.post-2125528870187066711</id><published>2010-11-15T08:15:28.502-08:00</published><updated>2010-11-15T08:15:28.502-08:00</updated><title type='text'>Thanks kr - I tested your suggestion on my machine...</title><content type='html'>Thanks kr - I tested your suggestion on my machine. Avoiding Math.Pow was indeed quicker - about 3 times for integers, twice as fast for doubles.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1705051721030116110/9079430491027418615/comments/default/2125528870187066711'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1705051721030116110/9079430491027418615/comments/default/2125528870187066711'/><link rel='alternate' type='text/html' href='http://geek.hubkey.com/2009/02/rounding-to-nearest-1000-in-c.html?showComment=1289837728502#c2125528870187066711' title=''/><author><name>txs8311</name><uri>http://www.blogger.com/profile/07046898420109468604</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://geek.hubkey.com/2009/02/rounding-to-nearest-1000-in-c.html' ref='tag:blogger.com,1999:blog-1705051721030116110.post-9079430491027418615' source='http://www.blogger.com/feeds/1705051721030116110/posts/default/9079430491027418615' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1014719260'/></entry><entry><id>tag:blogger.com,1999:blog-1705051721030116110.post-6881330589222232956</id><published>2010-11-15T05:38:08.724-08:00</published><updated>2010-11-15T05:38:08.724-08:00</updated><title type='text'>Your solution works fine but it works rather slow....</title><content type='html'>Your solution works fine but it works rather slow. On the following website I found methods that work about 5 times faster: http://cboard.cprogramming.com/csharp-programming/75260-return-value-nearest-100-a.html&lt;br /&gt;&lt;br /&gt;I think you should avoid usage of Math.Pow...&lt;br /&gt;&lt;br /&gt;kr</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1705051721030116110/9079430491027418615/comments/default/6881330589222232956'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1705051721030116110/9079430491027418615/comments/default/6881330589222232956'/><link rel='alternate' type='text/html' href='http://geek.hubkey.com/2009/02/rounding-to-nearest-1000-in-c.html?showComment=1289828288724#c6881330589222232956' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://geek.hubkey.com/2009/02/rounding-to-nearest-1000-in-c.html' ref='tag:blogger.com,1999:blog-1705051721030116110.post-9079430491027418615' source='http://www.blogger.com/feeds/1705051721030116110/posts/default/9079430491027418615' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1347520638'/></entry><entry><id>tag:blogger.com,1999:blog-1705051721030116110.post-8708643684388459455</id><published>2009-05-20T12:11:13.125-07:00</published><updated>2009-05-20T12:11:13.125-07:00</updated><title type='text'>If you need only number why not to use smth like. ...</title><content type='html'>If you need only number why not to use smth like. Only need to check that result value will not overflow int.maxValue&lt;br /&gt;&lt;br /&gt;int mod = value % 1000;&lt;br /&gt;                if(mod&amp;gt;0)&lt;br /&gt;                {   &lt;br /&gt;                    value += 1000 - rest;&lt;br /&gt;                }</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1705051721030116110/9079430491027418615/comments/default/8708643684388459455'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1705051721030116110/9079430491027418615/comments/default/8708643684388459455'/><link rel='alternate' type='text/html' href='http://geek.hubkey.com/2009/02/rounding-to-nearest-1000-in-c.html?showComment=1242846673125#c8708643684388459455' title=''/><author><name>Jarda</name><uri>http://www.blogger.com/profile/13305065117009875542</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://geek.hubkey.com/2009/02/rounding-to-nearest-1000-in-c.html' ref='tag:blogger.com,1999:blog-1705051721030116110.post-9079430491027418615' source='http://www.blogger.com/feeds/1705051721030116110/posts/default/9079430491027418615' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-641524971'/></entry></feed>
