comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » FROM 5.12345 TO 5.12
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
FROM 5.12345 TO 5.12 [message #24164] Sat, 10 March 2001 21:13
Mark Chan is currently offline  Mark Chan
Messages: 24
Registered: November 2000
Junior Member
x=[5.12345, 45.378, 1300.3221, ...]

xyouts, 5,7, x[0]

Will give: 5.12345 (in some window)

Want: 5.12

xyouts, 5,7,format='(f4.2)',x[0] ---- not allowed, although the following
is allowed but not what I need

print,format='(f4.2)',x[0] ---- not what I need


Any suggestion?


Thanks in advance,
Mark Chan
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: printing floats/integer
Next Topic: Re: FROM 5.12345 TO 5.12

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 07:42:59 PDT 2025

Total time taken to generate the page: 0.15902 seconds