Thomas Morris
/
PROJ324_Final
Proj 324 Final
Fork of ELEC351_Group_T by
Diff: SERIAL.cpp
- Revision:
- 52:99915f5240b2
- Parent:
- 48:244d6d81bb52
- Child:
- 53:71f59e195f06
--- a/SERIAL.cpp Tue Jan 09 15:15:08 2018 +0000 +++ b/SERIAL.cpp Tue Jan 09 22:27:49 2018 +0000 @@ -1,19 +1,18 @@ #include "SERIAL.hpp" -int Log_Value = 0; -bool Decimal_Check(char Input[100]) +bool Decimal_Check(char Input[100]) //Check if there is a decimal within the Array { for(int x = 0; x < sizeof(Input); x++) { - if(Input[x] == '.'){return true;} + if(Input[x] == '.'){return true;} //Return true if one is found } - return false; + return false; //Return false if one is not found } -int Decimal_Position(char Input[100]) +int Decimal_Position(char Input[100]) //Check where the decimal is positioned { - for(int x = 0; x < sizeof(Input); x++) + for(int x = 0; x < sizeof(Input); x++) { - if(Input[x] == '.'){return x;} + if(Input[x] == '.'){return x;} //Return the position x of the Decimal } return 0; } \ No newline at end of file