105
Chapter 8: C Programming
6.
When x reaches 60, the For loop is finished, and the average is calculated.
average = total/60;
7.
ISACC automatically rounds numbers down. This section of code rounds the value of
average up to the next whole number according to the remainder left over during division. If
the remainder is greater than 30, average is rounded up.
if ((total % 60) >= 30)
{
average = a 1;
8.
This line sets the value of input 2 to the hourly average just calculated.
set_input(2,average);
Содержание Sensaphone ISACC
Страница 1: ...Sensaphone ISACC Operator s Manual version 3 49...
Страница 22: ...22 Sensaphone ISACC Instruction Manual...
Страница 52: ...52 Sensaphone ISACC Instruction Manual...
Страница 76: ...76 Sensaphone ISACC Instruction Manual...
Страница 114: ...114 Sensaphone ISACC Instruction Manual...
Страница 120: ...120 Sensaphone ISACC Instruction Manual...
Страница 124: ...124 Sensaphone ISACC Instruction Manual...
Страница 130: ...130 Sensaphone ISACC Instruction Manual...
Страница 132: ...132 Sensaphone ISACC Instruction Manual...
Страница 140: ...140 Sensaphone ISACC Instruction Manual...
Страница 142: ...142 Sensaphone ISACC Instruction Manual...