1*9a7741deSElliott HughesBEGIN { 2*9a7741deSElliott Hughes OFMT = ">>%.6g<<" 3*9a7741deSElliott Hughes a = 12.1234 4*9a7741deSElliott Hughes print "a =", a 5*9a7741deSElliott Hughes b = a "" 6*9a7741deSElliott Hughes print "1 ->", b 7*9a7741deSElliott Hughes CONVFMT = "%2.2f" 8*9a7741deSElliott Hughes b = a "" 9*9a7741deSElliott Hughes print "2 ->", b 10*9a7741deSElliott Hughes CONVFMT = "%.12g" 11*9a7741deSElliott Hughes b = a "" 12*9a7741deSElliott Hughes print "3 ->", b 13*9a7741deSElliott Hughes} 14