Browse by Tags

DivideByZeroException and floating points
Published 03-01-2006 9:37 PM | jokiz
i was experimenting with ExpectedException attribute of NUnit when i noticed that a DivideByZeroException was not thrown when a division by zero was done within variables of type double. instead, i got a PositiveInfinity quotient for my sample routine...
Filed under: , ,
Real life application of Bisection Method algorithm
Published 02-08-2005 12:52 PM | jokiz
I’ve seen an officemate of mine this morning browsing the history log of a code sheet (VSS) to know when was a particular line added and who did it. What striked me was the way he opened each entry of the history database from oldest to the latest. I...
Rounding off numbers
Published 01-14-2005 5:02 PM | jokiz
Back in grade school (Third Grade if I can remember it correctly), rounding off a number which is exactly in between (halfway) follows the “nearest even rule”. Rounding off 0.5 and 1.5 to their nearest units digit gives: 2.5 -> 2 3.5 -> 4 After...
Filed under: , , ,