This shows you the differences between two versions of the page.
arduino:arithmetic_operators:arithmetic [2013/02/15 19:13] 158.181.88.241 [Programming Tips:] |
arduino:arithmetic_operators:arithmetic [2024/02/16 01:04] (current) |
||
---|---|---|---|
Line 33: | Line 33: | ||
====Programming Tips: ==== | ====Programming Tips: ==== | ||
- | * Know that [[integer constants]] default to [[arduiono:data_types:int]|], so some constant calculations may overflow (e.g. 60 * 1000 will yield a negative result). | + | * Know that [[arduino:data_types:int|integer constants]] default to [[arduino:data_types:int|]], so some constant calculations may overflow (e.g. 60 * 1000 will yield a negative result). |
* Choose variable sizes that are large enough to hold the largest results from your calculations | * Choose variable sizes that are large enough to hold the largest results from your calculations |