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

Home » Public Forums » archive » Re: FORMAT FLOATS TO STRINGS WITH 3 DIGITS ONLY
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: FORMAT FLOATS TO STRINGS WITH 3 DIGITS ONLY [message #44156] Tue, 24 May 2005 08:50 Go to previous message
Benjamin Hornberger is currently offline  Benjamin Hornberger
Messages: 258
Registered: March 2004
Senior Member
hradilv wrote:
> How about strtrim()?
>

You can use STRTRIM to convert a float to strıng, but if you want to
control the output format, you'll have to use STRTRIM(STRING(...,
format=...)), since STRTRIM doesn't accept the FORMAT keyword. Then you
can just use 0 as field width and save the call to STRTRIM.

But yes, in principle you can convert to a fixed width string, padded
with spaces, and then trim the spaces away.

Benjamin
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: �����H�s�A�ȭp���R�Q�e�G.............
Next Topic: Adding an annotation to an iTool programmatically

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

Current Time: Sat Oct 11 01:07:17 PDT 2025

Total time taken to generate the page: 0.88112 seconds