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

Home » Public Forums » archive » String to Floating conversion
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: String to float [message #82676 is a reply to message #80324] Wed, 09 January 2013 11:13 Go to previous message
Fabzi is currently offline  Fabzi
Messages: 305
Registered: July 2010
Senior Member
On 01/09/2013 08:10 PM, Gompie wrote:
> Hi,
> I have a string +2.64342987e+02 which I want to convert to float. Each digit is important so I dont want to loose any of them while type converting to float.
>
> print float(+2.64342987e+02) gives 264.343
> print, double(+2.64342987e+02) gives 264.34299
>
> I want 264.342987
>
> Can anyone help.
> Rgds
> Gompie
>

http://www.idlcoyote.com/math_tips/sky_is_falling.html

Let see if david is faster than me ;-)
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: String to float
Next Topic: Re: find missing elements in an array

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

Current Time: Sat Oct 11 15:51:07 PDT 2025

Total time taken to generate the page: 0.81744 seconds