arduino:arithmetic_operators:arithmetic

click to support this page (eg 0,42 € or so) Thanks.

This shows you the differences between two versions of the page.

arduino:arithmetic_operators:arithmetic [2013/02/15 19:15] 158.181.88.241 |
arduino:arithmetic_operators:arithmetic [2013/02/15 20:45] (current) |
||
---|---|---|---|

Line 33: | Line 33: | ||

====Programming Tips: ==== | ====Programming Tips: ==== | ||

- | * Know that [[integer constants]] default to [[arduino: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.1360952127.txt · Last modified: 2013/02/15 19:15 by 158.181.88.241

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