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

Home » Public Forums » archive » String to float
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
String to float [message #82677] Wed, 09 January 2013 11:10
Gompie is currently offline  Gompie
Messages: 76
Registered: August 2012
Member
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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Passing objects and parenthesis... doing something wrong here?
Next Topic: String to Floating conversion

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

Current Time: Wed Oct 08 13:52:35 PDT 2025

Total time taken to generate the page: 0.00621 seconds