Viewing 6 posts - 1 through 6 (of 6 total)
Thanks for all the moderator,
At last i used the following code.
Round(Convert(Decimal(15,5),Convert(varchar(30),Convert(Decimal(15,7),@real))),2)
but the code is limited to a scale length of 5 and precision length of 15.
July 3, 2009 at 12:56 am
[Strike]Thanks for all the moderator,
At last i used the following code.
Round(Convert(Decimal(15,5),Convert(varchar(30),Convert(Decimal(15,7),@real))),2)
but the code is limited to a scale length of 5 and precision length of 15.[/Strike]
July 3, 2009 at 12:51 am
Thanks for all the moderator,
At last i used the following code.
Round(Convert(Decimal(15,5),Convert(varchar(30),Convert(Decimal(15,7),@real))),2)
but the code is limited to a scale length of 5 and precision length of 15.
July 3, 2009 at 12:51 am
Hi. i can able to get what i am expected when i use the below code
Declare @real Decimal(15,7)
Set @real=19.005
print ROUND(@real + CAST(0.5E * POWER(0.1E, 2) AS...
July 3, 2009 at 12:17 am
Hi Peso, Thanks for the code.
Your logic works well when the input type is of decimal. but my input type is real.it is rounded to 19 and not 19.01, when...
July 3, 2009 at 12:06 am
Thanks for the Reply. I have already tried with converting the real into decimal before converting to Varchar
Declare @real real
Set @real=Input
print Round(Convert(varchar(30),Convert(Decimal(15,7),@real)),2)
If Input = 19.005, expected...
July 2, 2009 at 5:32 am
Viewing 6 posts - 1 through 6 (of 6 total)