This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Some minimal class for values with units | |
// (nothing exciting going on...) | |
function Unit(name,val) { | |
this.name = name; | |
this.val = val; | |
} | |
Unit.prototype.toString = function() { | |
return this.val + " " + this.name; | |
} |