arduino:arithmetic_operators:arithmetic

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 [2013/02/15 20:45] (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 |

advertising

arduino/arithmetic_operators/arithmetic.txt · Last modified: 2013/02/15 20:45 (external edit)

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported