p-num outputs a number expression given by <number>. The output is sent to a client that made the request. If this is within write-string, then <number> is output into the buffer that builds a new string.
Note that number must be of "num" type (which is "long long" C type).