Decimal into Visual Studio field

Hi,

I am trying to modify a field that currently displays numbers as integers "4/4" to display with a decimal. But, only the numerator, ideally it would look like "4.2/4" with only one decimal place.

Thanks!!
=Int(Avg(DateDiff("d",Fields!ORDER_DATE.Value,Fields!SHIPPED_DATE.Value))) & " / " & (Int(Avg(Abs(DateDiff("d",Fields!PROMISE_DATE.Value,Fields!ORDER_DATE.Value)))))

Open in new window

Hoyt81Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Megan BrooksSQL Server ConsultantCommented:
You could use Round() on the numerator instead of Int(). See code snippet below. This example rounds to 1 decimal place.
1:
 =Round(Avg(DateDiff("d",Fields!ORDER_DATE.Value,Fields!SHIPPED_DATE.Value)), 1) & " / " & (Int(Avg(Abs(DateDiff("d",Fields!PROMISE_DATE.Value,Fields!ORDER_DATE.Value)))))
 

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Hoyt81Author Commented:
Exactly what i needed!
Thanks!
0
planoczCommented:
Way to go rscowden you made it to Masters!! :)
0
Megan BrooksSQL Server ConsultantCommented:
Thank you! I work at a non-profit association as the sole developer, doing mainly Microsoft BI and with help only from an IT consultant who manages the servers. It can be lonely sometimes, and EE lets me stay in touch with other people that speak the same language. :-)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
SSRS

From novice to tech pro — start learning today.