blob: 39b68905b72d838fa359222e3a13cc4c15074a14 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
% CPSC-FUNCTION-NUM_TO_STR(7)
# NAME
cpsc-function-num_to_str - convert a number to text
# SYNOPSIS
```text
NUM_TO_STR(number : INTEGER or REAL) RETURNS STRING
```
# DESCRIPTION
Provided by the standard string library, loaded and linked by default.
Format INTEGER as signed decimal text and REAL with six digits after the decimal point.
# EXAMPLE
```text
OUTPUT NUM_TO_STR(42), " ", NUM_TO_STR(3.5)
```
# SEE ALSO
[cpsc-language-overview(7)](../cpsc-language-overview.7.md), [cpsc-function-str_to_num(7)](cpsc-function-str_to_num.7.md).
|