summaryrefslogtreecommitdiff
path: root/round
blob: dfef80012c2a2f4e82cc7b786dda1520be0375e4 (plain)
1
2
3
4
5
6
7
#!/usr/bin/env ruby

r = ARGV[0].to_i
while line = STDIN.gets
  puts line.to_f.round r
end