parameter rounded value

Discussion in 'Pro/Engineer & Creo Elements/Pro' started by g. bon, Jun 19, 2007.

  1. g. bon

    g. bon Guest

    Hi all,

    I'm looking for rounding some parameter values in order to display them on a
    drawing.

    For example, I have a mass parameter that take the part mass value.
    (mass=pro_mp_mass)
    I would like to round this parameter not to have 7.925466541 on the sheet
    but just 7.92.
    Is there any round possibility or must I use Ceil and Floor functions ?

    Thanks,
    GB
     
    g. bon, Jun 19, 2007
    #1
  2. g. bon

    John Wade Guest

    When the parameter appears in a note, you can truncate it by entering
    the parameter text as &mass[.X] where X is the number if digits after
    the decimal point you want.
     
    John Wade, Jun 19, 2007
    #2
  3. g. bon

    David Janes Guest

    When the parameter appears in a note, you can truncate it by entering
    the parameter text as &mass[.X] where X is the number if digits after
    the decimal point you want.



    Every function I know of in Pro/e for changing the number of decimal places shown rounds up or down; none strictly truncate, although rounding down will look like truncation.

    David Janes
     
    David Janes, Jun 19, 2007
    #3
  4. g. bon

    Fork Road Guest


    And, this adds.....
    Yeah, squat.
     
    Fork Road, Jun 20, 2007
    #4
  5. g. bon

    John Wade Guest

    Well, the irony of your post wasn't lost on me Forky old man. What
    gets me is when occaisional posters get themselves free consulting and
    can't be bothered to say thanks. Did Mr. Bon's parents teach him no
    manners at all?
     
    John Wade, Jun 24, 2007
    #5
  6. g. bon

    David Janes Guest

    Well, the irony of your post wasn't lost on me Forky old man. What
    gets me is when occaisional posters get themselves free consulting and
    can't be bothered to say thanks. Did Mr. Bon's parents teach him no
    manners at all?

    Actually, John, a lot of people don't reply to advice given here, with the results or, with thanks. And, some people do, regularly, reply with both. And sometimes a thread, a conversation ensues. It's not often but worth the trek through the desert. But, in all of that, I have no idea what it represents. I suppose though, that the thanks is up to us: if we demand it, we'll get it, if only by keeping a list of those who do not reply (with results/thanks) and simply no longer helping those we consider rude and ungrateful, possibly even announcing that fact here. I'm really more interested in hearing the results because, far too often, I'm sure I'm guessing, interpreting (or misinterpreting) the question. My BIGGEST gripe, here, is the paucity of information we have to go on to answer any question, indicated by how many times someone will say something like "well, I guess I didn't express myself very clearly" or "I guess I didn't give you guys enough detail", then they go on to do what they should have done in the first place, which is to give a complete description of the problem and what they did already to address it. Instead, we play dentist, yanking answers out of them like they were teeth, reluctant to be pulled. And, yeah, if you make me BEAT the details of YOUR problem out of you, you'd damn well better have a BIG 'thank you' waiting when I answer it correctly! On the other hand, if you make it easy for me to look smart (like you tell me enough so I can just look in the Help files), no 'thank you' required, 'cuz I'll just tell you how you coulda done it yourself. (Who'd expect a 'thank you' for making someone look foolish and ignorant and inept and lazy and.... !?!) And, then, how do we politely, diplomatically tell people, who pose some "problem" to us, that what they're trying to do is nuts and violates every ISO/ASME rule known. Sheesh, the help biz!

    David Janes
     
    David Janes, Jun 24, 2007
    #6
  7. g. bon

    g. bon Guest

    Yes, they can say thanks but when the get information (right now for me).

    So : Thanks, it works fine.
     
    g. bon, Jun 27, 2007
    #7
  8. g. bon

    graminator Guest

    Perhaps you meant to write 7.93 in the first place? IOW you wanted to
    round the value to the nearest 2 decimal places, not truncate it.
     
    graminator, Jun 28, 2007
    #8
  9. g. bon

    g. bon Guest

    Yes,Yes, You're right.
    My question was very stupidly exposed (I've just seen that).

    As you said, I wanted to round the value (and get 7.93).
    The solution that uses [.2] is what I was looking for.

    Formtunately, My question was wrong but the response I get was right...

    Thanks.

    "graminator" <> a écrit dans le message de ...
    Perhaps you meant to write 7.93 in the first place? IOW you wanted to
    round the value to the nearest 2 decimal places, not truncate it.
     
    g. bon, Jun 29, 2007
    #9
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 (here). After that, you can post your question and our members will help you out.