Help required on dividing 256 bit value into 2 decimals??
-
Posted a question a while ago: "Is there some way to manipulate/store/use 256 bit int/float/long so that finally a calculator for those 256 bit values can be made?" One suggestion was to divide that number into 2 decimals or 4 longs BUT I'm pretty much a newcomer :~ so could anyone help me out some little more and tell me howwww exactly to divide that 256 bit input into those 2 128 bit decimals? I mean the problem facing me is this: I take a string input (readline) and then have to convert that to some numerical form to perform the mathe operations...but to do that I have to have some container, a datatype big enough to hold that converted 256 bit value first right?...so how do I know how and from where to break that converted string input into 2 decimals actually during conversion? I do hope I haven't muddled this up :sigh:...BUT anything possible plz? :confused:... Thanks beforehand for time and help...
-
Posted a question a while ago: "Is there some way to manipulate/store/use 256 bit int/float/long so that finally a calculator for those 256 bit values can be made?" One suggestion was to divide that number into 2 decimals or 4 longs BUT I'm pretty much a newcomer :~ so could anyone help me out some little more and tell me howwww exactly to divide that 256 bit input into those 2 128 bit decimals? I mean the problem facing me is this: I take a string input (readline) and then have to convert that to some numerical form to perform the mathe operations...but to do that I have to have some container, a datatype big enough to hold that converted 256 bit value first right?...so how do I know how and from where to break that converted string input into 2 decimals actually during conversion? I do hope I haven't muddled this up :sigh:...BUT anything possible plz? :confused:... Thanks beforehand for time and help...
Hmmm... maybe this might help? http://www.codeproject.com/csharp/biginteger.asp[^]
**"It is impossible to rightly govern the world without God and the Bible." -- George Washington