insert into @temp values(NULL)--insert into @temp values(-1)--insert into @temp values(0)insert into @temp values(1)insert into @temp values(2)insert into @temp values(3)insert into @temp values(4)insert into @temp values(5)insert into @temp values(6)insert into @temp values(7)

This is fantasic work. Thanks! This actually saved my butt putting together a Rolled Throughput Universe in BusinessObjects and I desperately needed a PROD/MULT function in SQL Server.

I am however having a problem with the return value. I am only getting 1 or 0 back as a result. Does this have something to do wit the fact that the Write finction is using a BinaryWriter? How do I get this function to actually return the decimal value? Any help would be greatly appreciated. Almost there! :)