summaryrefslogtreecommitdiff
path: root/max
diff options
context:
space:
mode:
Diffstat (limited to 'max')
-rwxr-xr-xmax4
1 files changed, 3 insertions, 1 deletions
diff --git a/max b/max
index 506bd03..87f3c73 100755
--- a/max
+++ b/max
@@ -1,9 +1,11 @@
#!/usr/bin/env ruby
+
max = -1.0/0
while line = STDIN.gets
- v = line.strip.to_f
+ v = line.to_f
max = v if v > max
end
+
puts max