Banker's Rounding - WTF
So today I was hacking around with the Skype API to put together a little bot which will contact me once an hour while I am at work with some interesting data from the web. The idea is it will eventually be a bot that uses the eBay API to tell me when a certain item I am looking for is listed as a BIN under a certain price. I've been looking at various ways to do this but (since I only have one computer here and don't fancy going to the hassle of partitioning the hard drive) in the end I chose to use window's scheduled tasks and VBS (although perl with active perl gave it a run for it's money).
Due to this I am interested when random facts about VBS and indeed visual basic turn up but this one truly made me fall over backwards. WHO by default would set up a programming language to use banker's rounding WHY would I want 4.985 to round to 4.98 rather than 4.99 when I go to 3 significant figures!
Ah well thanks to the comments section of daily wtf for clearing that one up :)

Comments