Programming

What’s “L” in the programs? It seems to be a numerical value but what is it equivalant to in metric system. :confused:
Thanks

Where is this “L” to which you refer?

I found an example in robot.h of the kickoff navigation code

#define    PI_MRAD 3142L

From this site

Long integer constants are created by appending the suffix “l” or “L” (upper- or lower-case alphabetic L) to a decimal integer. For example, 0L is the long zero. Either the upper or lower-case “L” may be used, but upper-case is the convention for readability.

Do you mean something like 0L (zero ell)? It’s just a way of telling the compiler how much precision to use in calculations that use this constant. In this case, it tells the compiler to use a 32-bit (L)ong.

-Kevin