
bbcjs.trace('<b style="color:Green">jst_math.js was included.</b>',2);new function(){var math=bbcjs.math={};math.getOrdinal=function(num){var ord="th";if((num<10)||(num>13)){switch(num%10){case 1:ord="st";break;case 2:ord="nd";break;case 3:ord="rd";break;default:break;}}
return ord;};math.range=function(min,max){this.min=min;this.max=max;this.type="range";};math.range.prototype={contains:function(x){if(isNaN(x))return false;else{x=parseFloat(x);if((x>=this.min)&&(x<=this.max))return true;else return false;}},toString:function(){return"Range Object ("+this.min+"..."+this.max+")";}};math.range.prototype.validate=math.range.prototype.contains;}();