summaryrefslogtreecommitdiff
path: root/src/c/elementaryFunctions/radix_conversions/base2dec/gbase2decs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/c/elementaryFunctions/radix_conversions/base2dec/gbase2decs.c')
-rw-r--r--src/c/elementaryFunctions/radix_conversions/base2dec/gbase2decs.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/c/elementaryFunctions/radix_conversions/base2dec/gbase2decs.c b/src/c/elementaryFunctions/radix_conversions/base2dec/gbase2decs.c
index 43e3686..811a411 100644
--- a/src/c/elementaryFunctions/radix_conversions/base2dec/gbase2decs.c
+++ b/src/c/elementaryFunctions/radix_conversions/base2dec/gbase2decs.c
@@ -159,12 +159,7 @@ double gbase2decs(char* in,int size,int base)
val = 35;
break;
}
- o = o + (val * pow(base, size));
- //printf("%f\n",out[0]);
- //o=(int)out[0];
- //o=o/16;
- //printf("%d %d %d\n",o,val,(val * pow(16, size)));
- //j++;
+ o = o + (val * (int)pow((double)base, size));
size--;
}
return o;