_within_tolerance strips trailing zeros from the min and max range values it outputs. This leads to damage if the min or max value is an integer containing trailing zeros rather than a real number wi
You can do this with a single sed invocation via multiple expressions: $ echo 200.00 | sed -e '/\./s/0*$//' -e 's/\.$//' 200 $ Cheers, Dave. -- Dave Chinner david@xxxxxxxxxxxxx
On 03/01/2013 02:30 PM, Dave Chinner wrote: On Fri, Mar 01, 2013 at 01:01:58PM -0500, Eric Whitney wrote: _within_tolerance strips trailing zeros from the min and max range values it outputs. This le
* Rich Johnston <rjohnston@xxxxxxx>: I just posted a V3 containing Dave's simplification. I'd hoped there would be something like that, and much appreciate the suggestion. Thanks, Eric