summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/src/docs/float_arithmetic.txt
blob: 1f9bce5abd59fdd52e2210a73ea648687a55c1ce (plain)
1
2
3
4
5
6
7
8
9
10
11
### What it does
Checks for float arithmetic.

### Why is this bad?
For some embedded systems or kernel development, it
can be useful to rule out floating-point numbers.

### Example
```
a + 1.0;
```