shithub: kwa

ref: 8f2d3879a9c66d2633ca7ec1c3b0495981feb04f
dir: /test/t.fmt/

View raw version
{
	for(x=1; x<=NF; x++){
		i = 0
		OFMT = CONVFMT = "%.6f"
		a[i] = (0+$x)  / 3.14
		a[i+1] = ((0+$x)  / 3.14) "_"
		a[i+2] = a[i] "_"
		i += 3
		OFMT = "[%.3f]"
		a[i] = (0+$x)  / 3.14
		a[i+1] = ((0+$x)  / 3.14) "_"
		a[i+2] = a[i] "_"
		i += 3
		CONVFMT = "(%.3f)"
		a[i] = (0+$x)  / 3.14
		a[i+1] = ((0+$x)  / 3.14) "_"
		a[i+2] = a[i] "_"
		i += 3
		OFMT = "{%.10g}"
		a[i] = (0+$x)  / 3.14
		a[i+1] = ((0+$x)  / 3.14) "_"
		a[i+2] = a[i] "_"
		i += 3
		CONVFMT = "|%.10g|"
		a[i] = (0+$x) / 3.14
		a[i+1] = ((0+$x)  / 3.14) "_"
		a[i+2] = a[i] "_"
		i += 3
		print a[1], a[2], a[3], a[4], a[5], a[6], a[7], a[8], a[9], a[10], a[11], a[12], a[13], a[14], a[15]
		delete a
	}
}