Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: nqp_pct
Fetching contributors…

Cannot retrieve contributors at this time

23 lines (18 sloc) 0.236 kB
#! ruby
def addit(*a)
res = 0.0
a.each { |x|
res += x.to_f
}
res
end
arg0 = 1000;
arg1 = 7.100;
arg2 = 87;
arg3 = "3.87";
arg4 = "21000000";
result = 0
50000.times {
result = addit(arg0, arg1, arg2, arg3, arg4)
}
puts result
Jump to Line
Something went wrong with that request. Please try again.