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

Home » Public Forums » archive » Re: Obtaining exponent from a scientific format number
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: Obtaining exponent from a scientific format number [message #30306 is a reply to message #30287] Wed, 17 April 2002 10:07 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Dick Jackson (dick@d-jackson.com) writes:

> Here's a way that you might like, but I know some others won't, as it uses
> the mysterious and cryptic "regular expressions" feature.
> ; " * . * e *"
> strPieces = StRegEx(str, '(.*)(\.)(.*)(e)(.*)', /Extract, /SubExpr)
> ; strPieces now contains StrArr(6, n), columns 1-5 hold the pieces

I just think anything that has a bunch of &%#@s in it
is a real programmer's solution, using real programmer
language! :-)

Cheers,

David

--
David W. Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Draw a point in 3D graphic object ?
Next Topic: Finding all angles within a range of directions; an algorithm question

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

Current Time: Sat Oct 11 12:58:00 PDT 2025

Total time taken to generate the page: 0.64055 seconds