I am having a very simple issue, I am trying to write a few values to a 16x2 LCD, the values are, originally floats. I need to be able to see the whole set of info in a single glance.
The issue is that, by default, I end up printing too much (the number plus eight digits of precision), so my result doesn't fit on the screen at all.
My code looks like this:
float A = 0, V = 0; PowerSampling.GetPower(ref V, ref A); Write("V " + V + " A:" + A + " W:" + A * V);
...and the code I am trying to replicate (I am porting this from an Arduino) looks like this:
float A, V; PowerSampling.GetPower(V, A); lcd << "V" << _FLOAT(V, 1) << " A" << _FLOAT(A,2) << " W" << _FLOAT(V * A,1);
I was intending to use String.Format but that doesn't seem to be supported... how can it be done?