aboutsummaryrefslogtreecommitdiffstats
path: root/test/ofmtstrnum.awk
diff options
context:
space:
mode:
Diffstat (limited to 'test/ofmtstrnum.awk')
-rw-r--r--test/ofmtstrnum.awk7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/ofmtstrnum.awk b/test/ofmtstrnum.awk
new file mode 100644
index 00000000..805dad73
--- /dev/null
+++ b/test/ofmtstrnum.awk
@@ -0,0 +1,7 @@
+BEGIN {
+ split(" 1", f, "|")
+ OFMT = "%.1f"
+ print f[1]
+ x = f[1] + 0
+ print f[1]
+}