Quote (carteblanche @ 14 Aug 2015 13:44)
rule of thumbs:
if it's money, use decimal
if it's not money but uses decimal places, use double
if it's an integer value, use int
(personally i use long for ids, but dunno what the standard is for that.)
you almost never wanna use byte, ubyte, short, ushort, uint, etc. dont overanalyze. it's a very small part of programming. use the rule of thumb and move on. focus on other things.
I wouldn't necessarily say "you almost never wanna use..." because those data types do have their purposes. However, i would certainly agree that the mentioned data types are infrequent. I personally use the type "byte" as i do a lot of work with images and networking tools.
This post was edited by FDBtech on Nov 19 2015 02:53pm