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
How to send a mail when a windows server goes down?
Access 2007, form datasheet view, change display property of an element based on another element in the record
Group Policy Interval for computer - update a specific time
return double array in Delphi call to c++
Issue with Thecus 1u4500 not booting
Microsoft Information Store stalling issues
Auto file move and rename
Notes 8.5.1 - Increasing Java Heap Size - No com.ibm.rcp.j2se.<version>
file
Database on a 64 bit OS - Conection issues
Deleted nested folders and files with powershell