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


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