CVars

TO-DO — This section is not finished yet

Conversions

Into bool

FromInto
boolNo change
floatfalse if 0.0
intfalse if 0
stringtrue if value is "true", false if "false", or false if string converted to integer is 0 or invalid
colorfalse if #000000

Into float

FromInto
bool1.0 or 0.0
floatNo change
intNo change
stringValue returned by strtod
colorInteger value with no change

Into int

FromInto
bool1 or 0
floatValue rounded down
intNo change
string1 if the value is "true", 0 if "false", or value returned by strtoll
colorRRGGBB octet pair as an integer

Into string

FromInto
bool"true" or "false"
floatValue formatted with %H
intValue formatted with %i
stringNo change
color"RR GG BB" octet pair