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

Home » Public Forums » archive » inverse function of binary.pro
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
inverse function of binary.pro [message #39966] Wed, 30 June 2004 02:12
sebinjapan is currently offline  sebinjapan
Messages: 14
Registered: June 2004
Junior Member
Hello,

I am using the function (best_)binary.pro available on David Fanning's web
page:
http://www.dfanning.com/misc_tips/binary_hex.html

I would like to know if someone already wrote the inverse function of
binary (a function that gives you the number corresponding to its binary
representation)?
Something like:
IDL> print, inv_binary(binary(76.12))
76.12

Thank you,

Sebastien

btw: I think there is a minor error at the end of binary.pro. On little
endian computer, it doesn't work with scalar of byte type. I think the
last "if" test should be:
if little_endian AND type NE 1 then $
instead of
if little_endian then $
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Create DXF file out of vertices and connectivities
Next Topic: Re: Setting values to NaN

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

Current Time: Fri Oct 10 13:35:24 PDT 2025

Total time taken to generate the page: 0.96179 seconds