Sha256: fa11793d4ee492908815d6212b05374b2f2a7d6f51f80c59429d00c6df2f40ae
Contents?: true
Size: 304 Bytes
Versions: 197
Compression:
Stored size: 304 Bytes
Contents
function curr(x) { if (!x) return '0.00' var t = typeof x; if (t == 'boolean') return '0.00'; if (t == 'number') return x.toFixed(2); if (t == 'string') return parseFloat(x).toFixed(2); console.log("curr doesn't know what this is:"); console.log(x); console.log(t); return 'STAHP' }
Version data entries
197 entries across 197 versions & 1 rubygems