aboutsummaryrefslogtreecommitdiff
path: root/4.2.c
diff options
context:
space:
mode:
authorsinanmohd <pcmsinan@gmail.com>2022-06-13 11:30:45 +0530
committersinanmohd <pcmsinan@gmail.com>2022-06-13 11:31:05 +0530
commitc67ff09a3f010b481751a0b6983239217062703d (patch)
treeefcc3ed8cdbcc9571be20b1499e8cb214bf386de /4.2.c
parent31a036f54543af5c6d9cabea58b021620e888035 (diff)
add till 4.6
Diffstat (limited to '4.2.c')
-rw-r--r--4.2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/4.2.c b/4.2.c
index 5739824..2f797f0 100644
--- a/4.2.c
+++ b/4.2.c
@@ -71,10 +71,10 @@ atof(const char str[])
if (e_sign < 0)
for (j = 0; j < e_power; j++)
- power *= 10;
+ power *= 10.0;
else
for (j = 0; j < e_power; j++)
- power /= 10;
+ power /= 10.0;
return (sign * val / power);
}