But then for input 12 (e.g.), you get 3 instead of 0.
Good point!
(Sums up my day, trying to do too much and getting most of it wrong.)
However, I do have the feeling there's an easier solution I'm overlooking.
@Greenbank started
London Fixed Gear and Single-Speed is a community of predominantly fixed gear and single-speed cyclists in and around London, UK.
This site is supported almost exclusively by donations. Please consider donating a small amount regularly.
But then for input 12 (e.g.), you get 3 instead of 0.