x to Bin ? or x to Hex To Bin
ATL / WTL / STL
1
Posts
1
Posters
0
Views
1
Watching
-
Hi everybody, i am writing some functions for arithmetic operations with Huge numbers(more than 1000 digit), i am using CString class and i treat CString objects like numbers,for example : CString s1,s2,s3; s1="625"; s2="25"; s3=Divide(s1,s2); // now s3="25" I have to convert Huge numbers to binary, so using simple algorithm(dividing by 2,...) is too slow, so i decided to convert these numbers first to Hex then from Hex to binary,(as converting to Hex to Bin is very fast as you know) i thought it would make my func faster but it takes approximately the same time ?? Does anybody know why ?? or have any ideas?? Regards m0n0