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

Home » Public Forums » archive » Re: Excluding Decimal Places in the Values of a Variable
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: Excluding Decimal Places in the Values of a Variable [message #83234 is a reply to message #83233] Thu, 14 February 2013 13:41 Go to previous messageGo to previous message
cgguido is currently offline  cgguido
Messages: 195
Registered: August 2005
Senior Member
Another simple question: why fix() and not floor()? it seems like the difference is a return type of INT vs LONG. anything else?

Gianguido

On Thursday, February 14, 2013 2:55:56 PM UTC-6, David Fanning wrote:
>
>
> I would do it this way:
>
>
>
> IDL> x=[[1.35679, 2.65487], [3.65789, 4.56455]]
>
> IDL> x = Fix(x*1000)/1000.
>
>
>
> Cheers,
>
>
>
> David
>
>
>
> --
>
> David Fanning, Ph.D.
>
> Fanning Software Consulting, Inc.
>
> Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
>
> Sepore ma de ni thue. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: cghistoplot: getting histdata values without any plotting?
Next Topic: Re: differences among map_proj_image, map_image and map_patch

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

Current Time: Fri Oct 10 09:32:53 PDT 2025

Total time taken to generate the page: 0.96012 seconds