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
sharing permission in Windows2003
Having a webservice use a Session variable that is set in the project before the webservice is called.
How do I calculate lowest point of expected variation?
Double Table when margin is adjusted
A servlet to handle and ajax get request?
vCenter Converter and SBS2008
Have a 4700 printer and would like to configure it to only print in black and white.
Adobe Photoshop 6.0
w32time
Filezilla FTP transfer gets "stuck"