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

Home » Public Forums » archive » JBIU utilities - release 1.0
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: JBIU utilities - release 1.0 [message #60917 is a reply to message #60809] Sun, 15 June 2008 19:39 Go to previous message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
Mark Piper wrote:
> On Jun 13, 12:39 pm, "mgal...@gmail.com" <mgal...@gmail.com> wrote:
>> How about the following?
>>
>> function mg_sign, x
>> compile_opt strictarr
>>
>> return, fix(x gt 0) - fix(x lt 0)
>> end
>
> Prior art! :)
>
> http://www.ittvis.com/codebank/search.asp?FID=296
>
> (Just kidding, Mike; I'm sure someone thought of this long before I
> did.)
>
> mp

I did note you mention in the comments that you think there should be a
cleaner algorithm than the one you used.

Mike
--
www.michaelgalloy.com
Tech-X Corporation
Software Developer II
[Message index]
 
Read Message
Read Message
Previous Topic: Re: JBIU utilities - release 1.0
Next Topic: Re: An algorithm puzzle

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

Current Time: Sat Oct 11 15:55:35 PDT 2025

Total time taken to generate the page: 1.01309 seconds