|
I have a procedure that when run returns a value for Price as 3026.3590 I want this to be 3026.60
(comments are locked)
|
|
Either explicitly round it using the or implicitly round it by setting the datatype The value 3026.3590 comes from the select statement. I cannot declare it and set it!
Nov 21 '10 at 05:55 AM
rawilken
Just use
Nov 21 '10 at 06:06 AM
Kev Riley ♦♦
(comments are locked)
|
|
Cast ( Sum...)As Decimal(10,2) but be careful with this - I don't know the underlying data types which is why I didn't suggest it - but this will limit you to 8 digits before the decimal point - is that ok? Using
Nov 21 '10 at 06:49 AM
Kev Riley ♦♦
If you need 10 digits before the decimal point, you can always increase the precision by 2: cast(3026.3590 as decimal(12,2))
May 03 '11 at 05:21 AM
Valentino Vranken
(comments are locked)
|


is that a typo? you want 3026.3590 to be 3026.60? Should that read 3026.36?
Correct. My bad.