aboutsummaryrefslogtreecommitdiffstats
path: root/test/ofmtstrnum.awk
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2016-07-23 22:11:52 +0300
committerArnold D. Robbins <arnold@skeeve.com>2016-07-23 22:11:52 +0300
commitadb5491f2c9f49bf3d0e57f52c55bcaa4221e36e (patch)
tree4e76b81c1ec485cc10f52d47b699a894cf65a247 /test/ofmtstrnum.awk
parentb7a631b6fa5ed5577520eccb1608956bd40a74e0 (diff)
parentde23ab7bfbea6ee03ef7386c6c203a4b2b7b7116 (diff)
downloadegawk-adb5491f2c9f49bf3d0e57f52c55bcaa4221e36e.tar.gz
egawk-adb5491f2c9f49bf3d0e57f52c55bcaa4221e36e.tar.bz2
egawk-adb5491f2c9f49bf3d0e57f52c55bcaa4221e36e.zip
Merge branch 'master' into feature/nocopy
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]
+}