summaryrefslogtreecommitdiff
path: root/max
diff options
context:
space:
mode:
authorPatrick Simianer <patrick@lilt.com>2026-02-26 10:05:59 +0000
committerPatrick Simianer <patrick@lilt.com>2026-02-26 10:05:59 +0000
commitb31ace79ea5f6b3f279c544cd3a443d6fbf2a24d (patch)
tree31f2b599fa5f6996aeb134390d58deb63eefe04a /max
parent8805e95ae94d798c6441f7e1b72c90e049563f17 (diff)
overhaulHEADmaster
Diffstat (limited to 'max')
-rwxr-xr-xmax3
1 files changed, 1 insertions, 2 deletions
diff --git a/max b/max
index b2c1cae..15d0003 100755
--- a/max
+++ b/max
@@ -1,10 +1,9 @@
#!/usr/bin/env ruby
-max = -1.0/0
+max = -Float::INFINITY
while line = STDIN.gets
v = line.to_f
max = v if v > max
end
puts max
-