Okay, my HugeFloat class is working very well doing all standard mathematical operations (+ - / * %) (and fast; Pi to 10,000 digits squared took only about 12 seconds). Anyway I would like to implement binary operations (^ | & ~) but am thinking it may be more of a challenge than I bargained for. My data is stored with two digits of the true value in each element of a byte array. So for example, 1234 would be stored something like: [0] = 34, [1] = 12. I think that no matter how the separated data are stored it would be a tricky task to try anything that inherently relies on the bits being arranged in a particular order.
Do you have any bright ideas about how one might go about performing binary arithmetic given this situation? Any thoughts are appreciated. Cam on.



LinkBack URL
About LinkBacks



).