From 116ba6f1dae9605653c4a44374298725af79cbfb Mon Sep 17 00:00:00 2001 From: kr820js Date: Sat, 23 Mar 2024 20:20:46 +0100 Subject: [PATCH] submition13 --- a1/program.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/a1/program.c b/a1/program.c index 9f3b8f0..775ad4e 100644 --- a/a1/program.c +++ b/a1/program.c @@ -132,12 +132,12 @@ int analizing_string(char* pointer){ number2=atof(second_number); result3=atof(result_nubmer); - number1 = round(number1 *100) / 100; - number2 = round(number2 *100) / 100; - result3 = round(result3 *100) / 100; +// number1 = round(number1 *100) / 100; + // number2 = round(number2 *100) / 100; + //result3 = round(result3 *100) / 100; -// printf("number1 = %s, number2 = %s, result3 = %s\n", first_number, second_number, result_nubmer); - // printf("number1 = %f, number2 = %f, result3 = %f\n", number1, number2, result3); + // printf("number1 = %s, number2 = %s, result3 = %s\n", first_number, second_number, result_nubmer); + //printf("number1 = %f, number2 = %f, result3 = %f\n", number1, number2, result3); if(operant=='+' &&result3==round((number1+number2) * 100) / 100){ return 1;