Hacker News new | ask | show | jobs
by comp1927 3627 days 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")

1 comments

Actually, 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")
B > 0 assumption is broken in their code. Read Page 4, footnote no.4: https://www.sec.gov/litigation/admin/2016/34-78291.pdf This was not caused by Ascii confusion...
These could be IBM Mainframes that are EBCDIC based.