aboutsummaryrefslogtreecommitdiffstats
path: root/test/numstr1.awk
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2017-12-28 20:51:34 +0200
committerArnold D. Robbins <arnold@skeeve.com>2017-12-28 20:51:34 +0200
commit18906a48d06521c9bbd77ffe6c3dbf9498ca5b20 (patch)
treeaffbe2c45bc4d3f88d53fa14f7f5fde02f3ad463 /test/numstr1.awk
parent348c16bbdf8c1599188d7f60e9e9ff58fa9e7484 (diff)
parent57801f2be5b7548e2dba148a54c0b0542a4240c7 (diff)
downloadegawk-18906a48d06521c9bbd77ffe6c3dbf9498ca5b20.tar.gz
egawk-18906a48d06521c9bbd77ffe6c3dbf9498ca5b20.tar.bz2
egawk-18906a48d06521c9bbd77ffe6c3dbf9498ca5b20.zip
Merge branch 'master' into feature/fix-comments
Diffstat (limited to 'test/numstr1.awk')
-rw-r--r--test/numstr1.awk7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/numstr1.awk b/test/numstr1.awk
new file mode 100644
index 00000000..e58404fc
--- /dev/null
+++ b/test/numstr1.awk
@@ -0,0 +1,7 @@
+BEGIN {
+ split("1.234", f)
+ OFMT = "%.1f"
+ print f[1]
+ x = f[1]+0
+ print f[1]
+}