Re: print float number

2014-01-09 Thread Greg Wooledge
On Thu, Jan 09, 2014 at 01:56:11PM +0800, lina wrote: > Hi Bob, my fault, I didn't realize this was a wrong way to start a new > conversation, by renaming the Subject and deleted everything inside. How > could they figure out it is from that thread? Email headers include a field called "In-Reply-T

Re: print float number

2014-01-08 Thread lina
On Wednesday 08,January,2014 01:36 PM, Bob Proulx wrote: > Hi lina, > > lina wrote: >> How can I print the 0.05, 0.10 ... 1.0 out, with the step of 0.05 >> >> Thanks ahead for your suggestions, > > First please do not hijack threads. You replied to Chris Down's > message responding to DanielB ab

Re: print float number

2014-01-08 Thread Greg Wooledge
On Tue, Jan 07, 2014 at 10:36:54PM -0700, Bob Proulx wrote: > lina wrote: > > How can I print the 0.05, 0.10 ... 1.0 out, with the step of 0.05 Floating point does weird things. A first approach might look like this: awk 'BEGIN {for (i=0.05; i<=1.0; i+=0.05) printf ("%.2f\n", i)}' But when I

Re: print float number

2014-01-07 Thread Bob Proulx
Hi lina, lina wrote: > How can I print the 0.05, 0.10 ... 1.0 out, with the step of 0.05 > > Thanks ahead for your suggestions, First please do not hijack threads. You replied to Chris Down's message responding to DanielB about "For loop prints two $values instead of one" and then changed the s

print float number

2014-01-07 Thread lina
Hi, How can I print the 0.05, 0.10 ... 1.0 out, with the step of 0.05 Thanks ahead for your suggestions,