Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   What are with the Ls in Kevin's code??!!! HELP!!! (http://www.chiefdelphi.com/forums/showthread.php?t=34916)

RbtGal1351 18-02-2005 15:21

What are with the Ls in Kevin's code??!!! HELP!!!
 
what are with the "L"s in Kevin's code?
For example,

in Reset_Gyro_Angle,
PHP Code:

gyro_angle 0L

also:

in
PHP Code:

int cmd_velocity(void)
{
    
// ...
mrad_per_sec = (mm_per_sec 1000L) / WHEEL_RADIUS;
    
// ...


what are they?
why are they there?
where are they defined?

i'm wondering also because our gyro does not work.
see this thread for more gyro details: http://www.chiefdelphi.com/forums/sh...ad.php?t=33786

thank you for any help in advance!!

~Stephanie :ahh:
Team 1351

jdhawg 18-02-2005 15:24

Re: What are with the Ls in Kevin's code??!!! HELP!!!
 
The L (i.e. 97L) means that the value (97) should be stored as a Long, instead of whatever they system default is. (Word, in this case.)

RbtGal1351 18-02-2005 16:57

Re: What are with the Ls in Kevin's code??!!! HELP!!!
 
Quote:

Originally Posted by jdhawg
The L (i.e. 97L) means that the value (97) should be stored as a Long, instead of whatever they system default is. (Word, in this case.)

ah, thank you!
~Stephanie


All times are GMT -5. The time now is 04:42.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi