# introduce std.math.addAny · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/4512f277849a7e1a0e221c051d654c58ecf771ae)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 4512f277849a7e1a0e221c051d654c58ecf771ae

Requested commit: 4512f277849a7e1a0e221c051d654c58ecf771ae

Commit: 4512f277849a7e1a0e221c051d654c58ecf771ae

Tree: 1f6779e12f4b9d03c3a297bbf5c4469a7de1e804

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
introduce std.math.addAny

I think this is generally more useful than the existing add function
because it doesn't unnecessarily rely on the types of the operands - the
error only occurs if the final mathematical result cannot be stored in
the desired result type.

```

## Parents

- [803215bb186cb4a16f2f9552749a18fa384634e6](https://git.cafe/gitcafe/zig/commit/803215bb186cb4a16f2f9552749a18fa384634e6?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/4512f277849a7e1a0e221c051d654c58ecf771ae?format=markdown)
