Joshua Hopkins
Joshua Hopkins

Reputation: 21

Reversing a Natural Log Algorithm

Trying to write an encoder and decoder that has to use this formula. Basically after all is said and done, the formula encodes any number between 25 and 2294E6 into an int between 0 and 254. However there is an extreme loss of value when decoding it with the reversed formula. I was seeing if there was a way to account for the loss somehow. Oh and for some more info, I can only store it as an int.

The Formula I'm referring to

Upvotes: 0

Views: 61

Answers (0)

Related Questions