2 ms·
If I have two OperatingTemps, can I add them? What is the type of the sum?
by edflsafoiewq 6y ago
If I have two OperatingTemps, can I add them? What is the type of the sum?
- Jtsummers 6y agoYes and it would be the same type but there is a risk of overflow (and underflow with subtraction) which could result in a runtime exception (same as the risk with conventional integers). You’d want to include a guard that prevented those results.