Help for robotc

Hi I was looking through a code and I was wondering what a “double” cause the person used it instead of float to define pid values.
Also can some one explain what the following code does?


while(!inPosition(lift,10)) {} 

lift is pid for our cone stacker.
Thanks!

A “double” in the C programming language means “double precision floating point number”. ROBOTC doesn’t really support doubles and converts any variables defined with that type to float (single precision floating point number). Typically a double will use 8 bytes of memory whereas a float uses only 4 bytes.