Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

1.2 kilobytes = 9.6 kilobits. If you need 61 bits per line, you’ve got enough bits for 157 lines. 393 lines if we go with 3 kilobytes. I think you may have used 61 bytes per line in your calculation rather than 61 bits.


I (not OP) would say bytes would be closer. The product name could be 20 characters long (20 bytes minimum)


OP was assuming the receipt would list the product UPC code rather than product name. A UPC code is 12 digits, which can be encoded in 40 bits.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: