diff --git a/Test.obn b/Test.obn
index 8c3a8d1458efc80ddf4837c106b664b70a3abfae..f8a3688761c9e28b3c33aad87cd805f41a96d9d1 100644 (file)
--- a/Test.obn
+++ b/Test.obn
MODULE Test;
-IMPORT Out;
+IMPORT Out, CPMath, CPStrings;
+
VAR
- msg : ARRAY 20 OF CHAR;
+ s : ARRAY 80 OF CHAR;
+ v, m, r, f : LONGREAL;
+ e : LONGINT;
BEGIN
- Out.Open;
- COPY("Hello World!", msg);
- Out.String(msg); Out.Ln;
- COPY("Hell!", msg);
- Out.String(msg); Out.Ln;
- COPY("The quick brown fox jumps over the lazy dog", msg);
- Out.String(msg); Out.Ln;
- msg := "Hello World!";
- Out.String(msg); Out.Ln;
+ v := CPMath.Pi();
+ m := CPMath.Mantissa(v);
+ e := CPMath.Exponent(v);
+ r := CPMath.Real(m, e);
+ f := CPMath.Frac(v);
+ Out.LongReal(v, 0); Out.Ln;
+ Out.LongReal(m, 0); Out.Ln;
+ Out.Int(e, 0); Out.Ln;
+ Out.LongReal(r, 0); Out.Ln;
+ Out.LongReal(f, 0); Out.Ln;
END Test.