diff options
Diffstat (limited to 'src/c/elementaryFunctions/radix_conversions/hex2dec')
-rw-r--r-- | src/c/elementaryFunctions/radix_conversions/hex2dec/ghex2decs.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/c/elementaryFunctions/radix_conversions/hex2dec/ghex2decs.c b/src/c/elementaryFunctions/radix_conversions/hex2dec/ghex2decs.c index 8722df1..eb42a7a 100644 --- a/src/c/elementaryFunctions/radix_conversions/hex2dec/ghex2decs.c +++ b/src/c/elementaryFunctions/radix_conversions/hex2dec/ghex2decs.c @@ -80,12 +80,7 @@ double ghex2decs(char* in,int size) val = 15; break; } - o = o + (val * pow(16, 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)16, size)); size--; } return o; |