Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.31 KB | None | 0 0
  1. uint8_t overflow()
  2. {
  3.  
  4.     if ((result/10000) >  0)
  5.         return 1;
  6.  
  7.     else
  8.         return 0;
  9. }
  10.  
  11.  
  12.  
  13. uint8_t underflow()
  14. {
  15.  
  16.  
  17.  
  18.     if (result< 0)
  19.         return 1;
  20.  
  21.  
  22.     else
  23.         return 0;
  24. }
  25.  
  26.  
  27.  
  28.  
  29. void equalTo()
  30. {
  31.     if (underflow() == 1)
  32.     blink();
  33.  
  34.     else if (overflow() == 1)
  35.     blink();
  36.  
  37.     else
  38.     numToTable(result);
  39.    
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement