home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.visual.basic      MS Visual Basic discussions, NOT dot-net      10,840 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 10,768 of 10,840   
   Ralph to Raoul Watson   
   Re: 100% quandry   
   07 Jun 09 11:31:26   
   
   From: nt_consulting64@yahoo.com   
      
   "Raoul Watson"  wrote in message   
   news:IIPWl.1145$u86.308@nwrddc01.gnilink.net...   
   > Ralph wrote:   
   > ....   
   >  >> we just have a different view as to what constitutes a   
   > > "bug". If something that is documented to behave a particular way, and   
   does   
   > > so consistently for some thirty years, I don't see how the fact you feel   
   it   
   > > should behave differently is in any way a "bug".   
   > ..   
   >   
   > You are absolutely right, our view differs. If round 0.585 produces the   
   > erroneous 0.58 as I have shown with the sample code, and we accepted MS   
   > explanation about the IEEE floating point issues for the past 30 years,   
   > then it is on us. MS has the ability to fix this issue. Anything that   
   > can be fixed but it's broken in code, I call a bug, you can call it   
   > whatever you want.   
      
   You keep harping on "MS", but if you check you will find "Banker's Rounding"   
   isn't a Microsoft invention. Accounting and 'Rounding Rules' (identified as   
   an assortment of names) existed long before computers, long before IEEE, and   
   long before Microsoft.   
      
   As I noted before there are many kinds of "Rounding" each with its own   
   'Business Rule', but what you continue to do, is to state "My rounding rule   
   is the only One True Rounding Rule and all else is an abomination before   
   me".   
      
   Your original response was useful - any time a programmer deals with   
   floating point numbers he must take precision under consideration, and work   
   out the business rules appropriate for his problem domain in order to   
   maintain that precision. A programmer must subsequently appreciate that not   
   all routines, functions, or methods provided by various libraries will in   
   fact be using the same rules, or even consistent between themselves. A   
   simple way to insure the programmer's BRs and expectations are upheld is to   
   provide his own custom routines.   
      
   -ralph   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca