Rounding in Project 2000

P

Phuong Nguyen

I have a question regarding rounding. I am using a text field
as a duration field and would like to round the result to two decimal
points. The formula that I am using (without the rounding function) is
as follow TRIM([Duration2]*[Number5]/360)+' days'. The problem with
this formula is that it gives me more precision than needed.

Thanks,
Phuong
 
J

John

Phuong Nguyen said:
I have a question regarding rounding. I am using a text field
as a duration field and would like to round the result to two decimal
points. The formula that I am using (without the rounding function) is
as follow TRIM([Duration2]*[Number5]/360)+' days'. The problem with
this formula is that it gives me more precision than needed.

Thanks,
Phuong

Phuong,
If you want two decimal places, try the following formula:
format(cstr([Duration2]*[Number5]/480),"#.00")+" days"

Normally the divisor should be 480 which represents the standard 8 hour
word day. However, if your standard workday is 6 hours, then 360 is
correct.

Hope this helps.
John
Project MVP
 
P

Phuong Nguyen

Thanks John! It's exactly what I need.

Phuong

John said:
Phuong Nguyen said:
I have a question regarding rounding. I am using a text field
as a duration field and would like to round the result to two decimal
points. The formula that I am using (without the rounding function) is
as follow TRIM([Duration2]*[Number5]/360)+' days'. The problem with
this formula is that it gives me more precision than needed.

Thanks,
Phuong

Phuong,
If you want two decimal places, try the following formula:
format(cstr([Duration2]*[Number5]/480),"#.00")+" days"

Normally the divisor should be 480 which represents the standard 8 hour
word day. However, if your standard workday is 6 hours, then 360 is
correct.

Hope this helps.
John
Project MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top