Microsoft
Software
Hardware
Network
Question : SQL round decimal
In a large select stmt, on of the columns I am reading from contains a number (double). This column may contain a whole number, or may contain a decimal. Sometimes the decimal is very long.
I am looking to round the decimial to 4, but only when required. If the number is whole or less than 4 decimals I prefer it stay that way.
How would I do this?
I am quering against a DB2 database
Answer : SQL round decimal
Oh I see what you're asking. Does this work?
SELECT (ROUND(MyNumber*10000),0)/
10000
Random Solutions
fruits without seeds
Cannot puTTY to Fedora 13
EIGRP Traffic limited to 50% by default?
Collect Windows 7 Product ID Scripr
How do I dynamically sum up/display customcontrol (ascx control in the item template) values into an asp:repeater footer?
Excel VBA Bloomberg function
Hex to ASCII conversion in C#
Need a SUM
Creation of RAID device fails
JQuery based image (actually an element of code) rotator