Posted By: Reconnoiter
storing multiple values 1 skill - 10/19/15 19:30
Hi again,
What would be the best way to store as many values with up to 2 digits (e.g. 3 or 22 or 99) in a skill?
I thought something on the line of 4 values per skill by using integer/fraction and multiplying/dividing. I managed to get 4 numbers out of one skill, but the problem is losing precision when saving into the skills (e.g. values get lower etc. with each save/restore).
Here is the general idea (/divided in 4 parts):
112233,44
But its currently faulty cause of precision loss.
What would be the best way to store as many values with up to 2 digits (e.g. 3 or 22 or 99) in a skill?
I thought something on the line of 4 values per skill by using integer/fraction and multiplying/dividing. I managed to get 4 numbers out of one skill, but the problem is losing precision when saving into the skills (e.g. values get lower etc. with each save/restore).
Here is the general idea (/divided in 4 parts):
112233,44
But its currently faulty cause of precision loss.