×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Round off parameter

Round off parameter

Round off parameter

(OP)
Hi,
I need to round off the weight in pounds for one decimal place. I have created external parameter (KGS) for weight in kg. In my case, it is 1.6 kg. When I create new integer type parameter and provide formula, it is coming as 3. I want 3.5 Lbs. I tried by 1*round(KGS*2.204622). It is coming as 4 only. Kindly give me an idea to round of in one or two decimal places. I checked in net and tried various methods. But, I unable to find the solution. Related links are
http://www.eng-tips.com/viewthread.cfm?qid=160824
http://www.eng-tips.com/viewthread.cfm?qid=305431
Please find the screen shot in the attachment.
When I tried---- 1/10*(round(KGS*2.204622)/1*10), the same value 4 is coming. Kindly tell me, where I am doing mistake.
Suresh

RE: Round off parameter


Quote (suresh070379)

When I create new integer type parameter ...

integers are integers, you can try all formula you want...

try with real

Eric N.
indocti discant et ament meminisse periti

RE: Round off parameter

(OP)
Hi,

Thanks for the reply. i forget the basic nature of integer. As you mentioned, I tried with real parameter and it is working fine and i able to control the decimal places now.

Suresh

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources