Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski 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
Joined
Oct 4, 2009
Messages
51
Location
EE
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.
 
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

Back
Top