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

Home » Public Forums » archive » Re: How to set elements of arrays as blank (not zero)?
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: How to set elements of arrays as blank (not zero)? [message #38856 is a reply to message #38850] Wed, 31 March 2004 03:02 Go to previous message
Ben Panter is currently offline  Ben Panter
Messages: 102
Registered: July 2003
Senior Member
Mathias Brandt wrote:
> Hello everyone!
> After great achievements following a hint from this newsgroup concerning
> array storage in files I am afraid I must bother you with another question:
> How can I set an element of a floating-point array as blank, so that it does
> not appear as 0 (zero) when importing the file (containing the array) into a
> spreadsheet calculation program?

How about creating a string array - and then using where to set the
elements you wish to be blank to ''.... something like

output=string(input)
output[where(input lt 0.00001)]=''

then write output to a file.

Ben

PS: Where 0.00001 is whatever the criterea for you floating point number
actually being zero is (thanks David!)

--
Ben Panter, Edinburgh
My name (no spaces)@bigfoot which is a com.
[Message index]
 
Read Message
Read Message
Previous Topic: Re: changing button text for dialog_message
Next Topic: Re: using TVRD(true=0) with a 24-bit image and decomposed=0

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

Current Time: Fri Oct 10 09:39:52 PDT 2025

Total time taken to generate the page: 1.35895 seconds