I have this statement:
Xpos = Xpos * 19230UL;
The number 19230 -- I'd like to set it as a constant or #define in the beginning of my sketch, since it's used a few places, and I may change it later. But I need the unsigned long math to work properly. Will this work, or do I need to add UL in there somewhere with myVal? Thanks.
const unsigned long myVal = 19230; Xpos = Xpos * myVal;