useful snippets

avoid decimal and float rounding weirdness

by David McClelland

JavaScript

// binary decimal method
return parseFloat(returnedFeed.toFixed(1));
//get caller of anon function
console.log("caller is " + arguments.callee.caller.toString());