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

Home » Public Forums » archive » Re: Format code to trim leading zeroes?
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 code to trim leading zeroes? [message #81225] Tue, 28 August 2012 16:33 Go to previous message
Phillip Bitzer is currently offline  Phillip Bitzer
Messages: 223
Registered: June 2006
Senior Member
How about a little STREGEX voodoo?

a = 0.00350800
str1 = stregex(a, '[1-9].*$', /extract)
print, str1
--->350800
[Message index]
 
Read Message
Read Message
Previous Topic: image interplate and overlay lat/lon?
Next Topic: Re: "Expression Must be a Scalar in this context:" error in nlinlsq function

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

Current Time: Wed Oct 08 15:07:47 PDT 2025

Total time taken to generate the page: 0.00344 seconds