Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations KootK on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

PLUS sign force output

Status
Not open for further replies.

i0wa

Industrial
Oct 4, 2009
51
Good evening.
It seems to be a piece of cake to output the "+" in front of coordinate BUT when it is greater than 0.
The question is how to make post processor to output "positive zero" (+0.0) ?
Thanks in advance for any help.
 
Replies continue below

Recommended for you

Hi i0wa
Try using this code
[format "%+.3f" $mom_pos(1)]

Change $mom_pos(1) to whatever is needed
This should output +0.0 and always put a + or - sign as required
The .3f fixes to 3 decimal places
Hope that helps

Cheers
Steve Griffiths :)

If you want to make apple pie from scratch, first you must create the universe!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor