From 2d2744ec74076d29e94a2a004e308f73a86b9fa5 Mon Sep 17 00:00:00 2001 From: "Andrew J. Schorr" Date: Mon, 20 Jun 2016 10:10:30 -0400 Subject: Call fixtype in a few more places to make sure we check types properly. --- test/strnum2.awk | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 test/strnum2.awk (limited to 'test/strnum2.awk') diff --git a/test/strnum2.awk b/test/strnum2.awk new file mode 100644 index 00000000..16e6f5d0 --- /dev/null +++ b/test/strnum2.awk @@ -0,0 +1,10 @@ +BEGIN { + split("1.234", f) + OFMT = "%.1f" + # check whether strnum is displayed the same way before and + # after force_number is called. Also, should numeric strings + # be formatted with OFMT or show the original string value? + print f[1] + x = f[1]+0 # trigger conversion to NUMBER + print f[1] +} -- cgit v1.2.3