| 1 |
MODULE shorttest ; |
| 2 |
|
| 3 |
FROM ShortStr IMPORT RealToStr ; |
| 4 |
FROM STextIO IMPORT WriteString, WriteLn ; |
| 5 |
FROM ShortMath IMPORT pi ; |
| 6 |
|
| 7 |
VAR |
| 8 |
buf: ARRAY [0..30] OF CHAR ; |
| 9 |
BEGIN |
| 10 |
WriteString ("pi = ") ; |
| 11 |
RealToStr (pi, buf) ; |
| 12 |
WriteString (buf) ; WriteLn |
| 13 |
END shorttest. |