[jQuery] simple math: add all values of (span class="number") and output result

[jQuery] simple math: add all values of (span class="number") and output result


I want to do some simple math. I want to collect all numbers that are
in a span with the class "number" and add them to each other. Then
output the result in another span (id="result").
<span class="number">25</span>
<span class="number">25</span>
<span class="number">25.5</span>
So this should be the result:
<span id="result">75.5</span>
I know it's simple, but I don't know the syntax to add the numbers.
Can you help me out or give me a hint in the right direction? It's
probably just a one line script looping through the spans and adding
them.