From 68acbb9a0c7967cb90a7e3756fc94fdd8a73d154 Mon Sep 17 00:00:00 2001 From: Patrick Simianer
Date: Wed, 29 Jan 2014 19:14:08 +0100 Subject: make use of nlp_ruby, LICENSE --- round | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'round') diff --git a/round b/round index 52cd013..3dfbb6f 100755 --- a/round +++ b/round @@ -1,4 +1,8 @@ #!/usr/bin/env ruby -puts STDIN.gets.to_f.round ARGV[0].to_i + +r = ARGV[0].to_i +while line = STDIN.gets + puts line.to_f.round r +end -- cgit v1.2.3