@ImGus … the numerical attribute types set the form of the number when stored … therefore the type you chose allocates a bit/byte allotment for that attribute
Index would need the least bits/bytes as it stores whole numbers; positive Real would need the most bits/bytes as it stores whole and/or decimal numbers; positive or negative Integer is in between in bits/bytes allotment as it stores whole numbers; positive or negative
EX: if you only need whole positive numbers: use Index type if it is possible that your number could be fractional (decimal): use Real if it is possible that your whole number could be negative: use Integer
any mathematical operation/function can be done on any number no matter what type you have assigned to the attribute. you can subtract a real number from an integer or index attribute … but, the computer will round-off the number when it stores/displays.
Comments
Just like chocolate cake: EVERY byte matters!
@ImGus … the numerical attribute types set the form of the number when stored … therefore the type you chose allocates a bit/byte allotment for that attribute
Index would need the least bits/bytes as it stores whole numbers; positive
Real would need the most bits/bytes as it stores whole and/or decimal numbers; positive or negative
Integer is in between in bits/bytes allotment as it stores whole numbers; positive or negative
EX: if you only need whole positive numbers: use Index type
if it is possible that your number could be fractional (decimal): use Real
if it is possible that your whole number could be negative: use Integer
any mathematical operation/function can be done on any number no matter what type you have assigned to the attribute.
you can subtract a real number from an integer or index attribute … but, the computer will round-off the number when it stores/displays.
@};- MH
PS of course as TSB says: "but the difference is so small i don't think it will matter."
Shadows Peak is an atmospheric psychological horror that explores the dark side of a player.