Another newbie here,

When I declare an array as "var" I can display its contents properly. However, when I declare it as "float" or "double", I get really strange values displayed. I thought using float or double would simply store better precision. Is there more to it than that?

// sample code below displays a strange value of -1056768 instead of -1.


float direction[3] = {0,-1,0};


PANEL* pDisplay =
{
digits (10, 60, "direction[1] = %0.f", *, 1, direction[1]);


flags = VISIBLE;
}