MCPcopy Create free account
hub / github.com/bitfield/ftl-code / Add

Function Add

3.2/calculator.go:7–9  ·  view source on GitHub ↗

Add takes two numbers and returns the result of adding them together.

(a, b float64)

Source from the content-addressed store, hash-verified

5// Add takes two numbers and returns the
6// result of adding them together.
7func Add(a, b float64) float64 {
8 return a + b
9}
10
11// Subtract takes two numbers a and b, and
12// returns the result of subtracting b from a.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected