summaryrefslogtreecommitdiff
path: root/min
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2014-01-29 19:14:08 +0100
committerPatrick Simianer <p@simianer.de>2014-01-29 19:14:08 +0100
commit68acbb9a0c7967cb90a7e3756fc94fdd8a73d154 (patch)
tree3b445131dcb203e94473ae1d8aa82a1798585276 /min
parent49158e721bfaf6423dca9fc633873218f691c83a (diff)
make use of nlp_ruby, LICENSE
Diffstat (limited to 'min')
-rwxr-xr-xmin6
1 files changed, 4 insertions, 2 deletions
diff --git a/min b/min
index c2f85b9..398b0fb 100755
--- a/min
+++ b/min
@@ -1,9 +1,11 @@
#!/usr/bin/env ruby
+
min = 1.0/0
while line = STDIN.gets
- v = line.strip.to_f
- min = v if v < min
+ v = line.to_f
+ min = v if v<min
end
+
puts min