summaryrefslogtreecommitdiff
path: root/2.3-1/src/c/elementaryFunctions/radix_conversions/base2dec
diff options
context:
space:
mode:
authorSiddhesh Wani2017-05-04 16:15:18 +0530
committerSiddhesh Wani2017-05-04 16:15:18 +0530
commitde82d12658979cd70439f977742f80fac9f6521f (patch)
treeeff661402e749b2402f5576271aefddd42be23fe /2.3-1/src/c/elementaryFunctions/radix_conversions/base2dec
parent472b2e7ebbd2d8b3ecd00b228128aa8a0bd3f920 (diff)
downloadScilab2C-de82d12658979cd70439f977742f80fac9f6521f.tar.gz
Scilab2C-de82d12658979cd70439f977742f80fac9f6521f.tar.bz2
Scilab2C-de82d12658979cd70439f977742f80fac9f6521f.zip
Basic functions and image processing working with MSVC on windows x64
Diffstat (limited to '2.3-1/src/c/elementaryFunctions/radix_conversions/base2dec')
-rw-r--r--2.3-1/src/c/elementaryFunctions/radix_conversions/base2dec/gbase2decs.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/2.3-1/src/c/elementaryFunctions/radix_conversions/base2dec/gbase2decs.c b/2.3-1/src/c/elementaryFunctions/radix_conversions/base2dec/gbase2decs.c
index 43e3686a..811a4116 100644
--- a/2.3-1/src/c/elementaryFunctions/radix_conversions/base2dec/gbase2decs.c
+++ b/2.3-1/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;