From 1a4d3e8e11002dd9a30ec04b63c1edf12893f96a Mon Sep 17 00:00:00 2001 From: Andrii Hermaniuk Date: Thu, 17 Mar 2022 22:14:36 +0000 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B8=D0=BB(?= =?UTF-8?q?=D0=B0)=20=D0=BD=D0=B0=20'du3/program.c'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- du3/program.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/du3/program.c b/du3/program.c index fc07aca..f473f39 100644 --- a/du3/program.c +++ b/du3/program.c @@ -34,7 +34,7 @@ int main(){ char *end = NULL; char *start = pol; x=strtof(start,&end); - x=(round(x*100))/100; + x=(round(x*1000))/1000; start=end; long double num=0; @@ -42,7 +42,7 @@ int main(){ long double p=1, n=0; n=strtof(start,&end); start=end; - n=(round(n*100))/100; + n=(round(n*1000))/1000; p=pow(x,(koef-i)-1);