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

Home » Public Forums » archive » Re: Padding Zeroes
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
Re: Padding Zeroes [message #49479] Tue, 25 July 2006 05:33
revengineer is currently offline  revengineer
Messages: 4
Registered: July 2006
Junior Member
f=89.9
s=string(f,format='(f4.1)')

ChristopherFlorio@gmail.com wrote:
> When I convert a scalar, (i.e. 89.9) to a string, the number gets
> padded with trailing zeroes, (i.e. '89.9000'). Is there a way to make a
> string of only the characters that in the scalar? (i.e. '89.9')
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Padding Zeroes
Next Topic: Re: IPLOT lockup problem

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

Current Time: Thu Oct 09 09:46:20 PDT 2025

Total time taken to generate the page: 0.00642 seconds