Question : decimal (xx,x) vs decimal

what makes the difference between the following 2 codes?

is it never safe to use just decimal without any precision?
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
declare @t1 decimal, @t2 decimal,@t3 decimal

set @t1 = 2130.23
set @t2 = 3932.02
set @t3 = 2156.52

select (((@t1/@t2)*@t3)/@t1)*@t2 decimaltype
go

declare @t1 decimal (12,2), @t2 decimal (12,2),@t3 decimal (12,2)

set @t1 = 2130.23
set @t2 = 3932.02
set @t3 = 2156.52

select (((@t1/@t2)*@t3)/@t1)*@t2 decimaltype
go

Answer : decimal (xx,x) vs decimal

I don't believe you can use a wildcard with a multiple parameter that way.

Something like this might work

StringVar Array Input := {?AnyStringPrompt};  // replace this with your string prompt
NumberVar howmany:= count (Input);
Numbervar Index;
BooleanVar SelectFormula:= False;

For Index := 1 to howmany do
  SelectFormula := SelectFormula OR {DepartmentField} StartsWith Input[Index];

SelectFormula

mlmcc
Random Solutions  
 
programming4us programming4us