Thanks, Doc I didn't post a very good link but the point I was trying to make is that on one of my bad e.g's of LET coercion I cannot see why SQL would convert to SINGLE/ DOUBLE when they are not recognized data-types in SQL Server. Access is not even in the equation atm but the point I was making is that it seems SQL can convert to decimal & single but I can't see why it would do that natively without Access being in the equation. This is a side topic mind, I have bigger problems in understanding the math in the basic same type DECIMAL(28,16); which is the main problem I face. I'm not even converting types, the columns in real-use are the correct types; so no cast is happening. The e.g.
Var's are explicitly declared as the decimal to what appears to be the correct scale & depicted in my analysis of the rules. The point is it's being truncated/ rounded to 10dp as Sonic pointed out. But following the rules I cannot see where I am going wrong. In my simple mind my math appears correct. According to MSN's Rules it should display the result as pic'd from Windows Calc: as highlighted
: Hopefully someone points me to my error, else if my math is correct the rules are incorrect; it's much more likely I'm wrong, but I cannot see where.
Thanks Isaac, they are:if you're going to want a decimal results in t-sql make sure the inputs are decimal
Var's are explicitly declared as the decimal to what appears to be the correct scale & depicted in my analysis of the rules. The point is it's being truncated/ rounded to 10dp as Sonic pointed out. But following the rules I cannot see where I am going wrong. In my simple mind my math appears correct. According to MSN's Rules it should display the result as pic'd from Windows Calc: as highlighted