19.0.0 released Nov 08, 2023
P num

Purpose: Outputs a number.

p-num <number> [ bytes-written [ define ] <bytes written> ]

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 can be of any integer type (such as "char", "int", "long" etc.) up to 64-bit signed number (i.e. of "num" type).

If "bytes-written" clause is used, then the number of bytes output will be in <bytes written>, which can be created with an optional "define".
Examples
To output a number to a client:
num x = 100;
p-num x

See also
Output
finish-output  
flush-output  
output-statement  
p-dbl  
pf-out  
pf-url  
pf-web  
p-num  
p-out  
p-path  
p-url  
p-web    
See all
documentation


You are free to copy, redistribute and adapt this web page (even commercially), as long as you give credit and provide a dofollow link back to this page - see full license at CC-BY-4.0. Copyright (c) 2019-2023 Dasoftver LLC. Vely and elephant logo are trademarks of Dasoftver LLC. The software and information on this web site are provided "AS IS" and without any warranties or guarantees of any kind. Icons from table-icons.io copyright PaweĊ‚ Kuna, licensed under MIT license.