diag_var(STRING* fmt,var);

Writes the floating point content of the var variable into the acklog.txt file, controlled by a C-style format string. This instruction can be used for logging fast-changing variables.


fmt - STRING* or char*, C style format string (see panel.digits).
var - var to print.


diag_var("\nframe: %6.3f",my.frame); // writes "frame: nnn.nnn" into acklog.txt.  

See also:

-diag, diag, diag_frame, panel.digits ► latest version online