4 ms·
//Try this in your console. function should_not_exclude_10B_10C(x) { if ("089" < x < "100") { console.log('excluding ' + x + ' in report.') } else {
by comp1927 10y ago
//Try this in your console.
function should_not_exclude_10B_10C(x) {
if ("089" < x < "100") {
console.log('excluding ' + x + ' in report.')
} else {
console.log(x + ' is normal.')
}
}
should_not_exclude_10B_10C("10B")
should_not_exclude_10B_10C("10C")
- rfurmani 10y agoActually, no: ascii 10B>100. The bug above is that you can't do chained inequalities like that in Javascript. Try: should_not_exclude_10B_10C("200")
- AWildDHHAppears 10y agoThese could be IBM Mainframes that are EBCDIC based.
- comp1927 10y agoB > 0 assumption is broken in their code. Read Page 4, footnote no.4: https://www.sec.gov/litigation/admin/2016/34-78291.pdf https://www.sec.gov/litigation/admin/2016/34-78291.pdf This was not caused by Ascii confusion...