bug-datamash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-datamash] Rounding


From: Timothy Rice
Subject: Re: [Bug-datamash] Rounding
Date: Tue, 7 Jul 2015 06:20:21 +1000

Hey Assaf,

Thanks for your interest.

> If I understand correctly, you intend this to be performed on every line 
> (without grouping) ?
> Such as:
> 
>     $ printf "1.4\n2.7\n" | datamash round 1 floor 1 ceil 1
>     1    1    2
>     3    2    3

I didn't think about grouping; your suggested output looks like what I had
in mind.


> Would you think there's a need to round off to specific number of digits (e.g 
> not always to integers, but round 2.459 => 2.46 ) ?

I don't think that would be necessary. If a person wants that, they could
multiple by 100, round, then divide by 100.


Best regards,


Tim



reply via email to

[Prev in Thread] Current Thread [Next in Thread]