Advertisement

03.14.2007 at 11:15AM PDT, ID: 22449533
[x]
Attachment Details

SQL ROUND Function

Asked by inghfs in SQL Server 2005, MS SQL Server

Tags: round, sql, function

I have a SQL Server table called Fund Details with a column named Annualised Return (%) of type float size 8.  

I am using the below SQL to select the Annualised Return (%) value at 2 decimal places:

SELECT ROUND([Annualised Return (%)], 2) FROM [Fund Details]

This works for most tuples in my table, but not all. Some values are still being returned as full floats. Can anyone suggest a possible reason and solution for this?

Many thanks in advance.Start Free Trial
[+][-]03.14.2007 at 11:35AM PDT, ID: 18720910

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: SQL Server 2005, MS SQL Server
Tags: round, sql, function
Sign Up Now!
Solution Provided By: ScottPletcher
Participating Experts: 3
Solution Grade: A
 
 
[+][-]03.14.2007 at 01:32PM PDT, ID: 18722024

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.14.2007 at 02:37PM PDT, ID: 18722524

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.14.2007 at 02:39PM PDT, ID: 18722532

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32