the binary cake is on fire help it will not accept values greater than 127 (7 bit integer limit) or decimals.
I believe this is the simplest way to make said code work it took me like 2 minutes to do this, if you can't get yours to work check this out.