is it possible to use formatstrings for Lcd.WriteText(f, new Point (0, 10), Convert.ToString(touchSensor.IsPressed()), true);
like it is possible for C printf, e.g.
%d, %2d, %3d, %-4d, %f, %4f, %-5.2f, %c, %s, %x, %2x,… and linefeed (\n) ?
e.g. printf("%2d ply, %9d searched, %6d by (%2x,%2x)\n",d-1,N,m,X,Y&0x77)
thank you, I already found this, but I don’t see information about this C-equivalent formatstring and multi-Variable-formatting. I guess C# is quite different from C, probably still a lot to learn anew…
thank you for your post!
In C# formatting appears to be far more complicated than when using C (“%3d”, “%5.2f”,…) so it will take some time until I will have learned that stuff. I’m curious if it once will be possible to simplify this issue by having inline functions (like wraps around the C# functions)…