Quote (ferf @ Aug 14 2015 02:31am)
also had another question..... say i had a variable with the value of 6
wouldn't it be better to use the datatype "byte" or "sbyte" over "int"?
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.
This post was edited by carteblanche on Aug 14 2015 05:45pm