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

Home » Public Forums » archive » Re: Integer - decimal help
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: Integer - decimal help [message #67863 is a reply to message #67720] Tue, 25 August 2009 08:24 Go to previous message
Nusret Sevinç is currently offline  Nusret Sevinç
Messages: 8
Registered: March 2009
Junior Member
Thanks for your answer Jean, but the for loop I mentioned is a part of
my program and I have to use that solution inside the for loop. At my
first trial, I used that solution outside the for loop and I got both
a and b zero.

Nusret

On 25 Ağustos, 15:07, "Jean H." <jghas...@DELTHIS.ucalgary.ANDTHIS.ca>
wrote:
> Nusret Sevinç wrote:
>> Uh, I see that I made a mistake with my 'for loop'. Now the first
>> solution works. Thank you very much Marteen.
>
>> Nusret
>
> You don't need a for loop here:
>
> IDL> a = [1.2, 3.4, 5.6]
> IDL> b = floor(a)
> IDL> c = a-b
> IDL> print,b
>             1           3           5
> IDL> print,c
>       0.200000     0.400000     0.600000
>
> Jean
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Speed-up of code
Next Topic: Digits in IDL

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

Current Time: Fri Oct 10 15:21:11 PDT 2025

Total time taken to generate the page: 1.20311 seconds