From ZDoom Wiki
void A_LogFloat (float whattoprint [, bool local)
Logs a floating-point value to the console and displays it on the screen.
- whattoprint: The floating-point value to log.
- local: If true, the value is logged if the player is either looking out the calling actor's eyes, or the calling actor is the player and the player is looking out the eyes of a non-monster actor. Default is false.
Basic example: this logs the value 42.5.
SOUL A 6 A_LogFloat(42.5)