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

Home » Public Forums » archive » Re: IDL refuse to acknowledge anything but integers...
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: IDL refuse to acknowledge anything but integers... [message #86543 is a reply to message #79717] Mon, 18 November 2013 07:07 Go to previous messageGo to previous message
sara.magrin is currently offline  sara.magrin
Messages: 3
Registered: November 2013
Junior Member
Hi all,
I have the same problem.

I quit IDLDE and tried again.
Both with IDLDE and command line I find everything correct at the beginning:

IDL> PRINT,FLOAT('2.41e12'),' 2.41e12'
2.41000e+012 2.41e12

but after the dialog_pickfile() it changes from floating-point to "floating-comma"

IDL> files=DIALOG_PICKFILE()
IDL> PRINT,FLOAT('2.43e12'),' 2.43e12'
2,00000 2.43e12

How can I fix it?
Is there a system variable to set for the floating-POINT?

Anyway no problem if I call DIALOG_PICKFILE(/directory), instead.

regards,
Sara






How can I fix it?



Il giorno martedì 27 marzo 2012 17:26:54 UTC+2, fawltyl...@gmail.com ha scritto:
> On Tuesday, March 27, 2012 4:51:03 PM UTC+2, Julien wrote:
>
>> Hello everyone.
>
>>
>
>> I encountered the weirdest bug I ever saw with IDL. I can't say
>
>> exactly when it happened, but at some point a few hours ago, IDL
>
>> stopped taking into account anything below one. Example:
>
>>
>
>> IDL> print,float(0.25)
>
>> 0,00000
>
>> IDL> print,0.25
>
>> 0,00000
>
>> IDL> print,-0.12
>
>> -0,00000
>
>> IDL> print,1.2
>
>> 1,00000
>
>> IDL> print,1.2d
>
>> 1,0000000
>
>>
>
>> Please help, I'm going mad...
>
>
>
> The output suggests that you have a decimal comma instead of a decimal dot. Try 'print, 1,23'
>
>
>
> regards,
>
> Lajos
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: TOTAL function
Next Topic: Time conversion for .nc file

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

Current Time: Fri Oct 10 12:17:22 PDT 2025

Total time taken to generate the page: 0.15976 seconds