Hacker News new | ask | show | jobs
by Thorrez 2194 days ago
0072 = 0072 + 2 * (filenameLength // 2)

That's wrong. filenameLength is 2, so that equation would come out to 74, not 72.

2 comments

oh did I make a mistake here? good catch. I'm gonna look back at my original notes for this.

I think 0072 + 2 * ( (filenameLength-1) / 2) should work but I'll test

okay, so the correct formula is: = 0070 + 2 * (filenameLen // 2) where // is floor division.

Site is updated too :)