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

Home » Public Forums » archive » Output file with string blanks and float
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: Output file with string blanks and float [message #90875 is a reply to message #90874] Sun, 03 May 2015 02:07 Go to previous messageGo to previous message
Miguel is currently offline  Miguel
Messages: 18
Registered: April 2015
Junior Member
Ok, I just found a way :

x=21.4567
print,strnsignif( x,strlen(strcompress(fix(x)))-1+2 )

gives : x=21.46

If you have a better way, please tell me.
Moreover, I still want to know if a blank arrray is possible in float format

Thanks
Miguel
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Mapping southern in Northern map
Next Topic: counting points falling inside a Voronoi cell

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

Current Time: Wed Oct 08 14:10:09 PDT 2025

Total time taken to generate the page: 0.00395 seconds