3 ms·D has checkedint which does this cleanly in a templateby mhh__ 6y agoD has checkedint which does this cleanly in a template