Browse Source

Added operation handler float method and template output

remotes/origin/develop
Eric Bagus 11 months ago
parent
commit
15dd594e1a
  1. 8
      src/operationHandler.c
  2. 10
      src/operationHandler.h

8
src/operationHandler.c

@ -107,4 +107,12 @@ void outputLong(long output) {
void outputDouble(double output) {
printf("Result: %lf", output);
}
void outputFloat(float output) {
printf("Result: %f", output);
}
void outputTemplate() {
printf("###############################\n-> Calculator\n#################################");
}

10
src/operationHandler.h

@ -10,4 +10,14 @@ bool containsTwoNumbers(const char*);
int extractFirstNumber(char*);
void outputInteger(int);
void outputDouble(double);
void outputFloat(float);
void outputLong(long);
void outputTemplate();
#endif //THEADMIRALS_OPERATIONHANDLER_H
Loading…
Cancel
Save