Da tvrtok 09 Februr 2006 17:51 ara.t.howard / noaa.gov napsal:
> > target_f += { source_f ? source_f : 0.00 }
>
>    target_f += source_f.to_f
>

I'd have used:

	target_f += source_f || 0.0

myself, but after hacking at irb a bit, ara's method seems somewhat sexier 
than that rather standard Ruby idiom. A nice perk is that it won't bug out on 
when the database returns the data as a String.

David Vallner