[Show all top banners]
Back to: Chautari Refresh page to view new replies
 C coding
[VIEWED 4986 TIMES]
SAVE! for ease of future access.
Posted on 05-07-06 11:38 AM     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

hey guys, how can i change string to float in C.
For example
my input is in char "456.765" and i need my output as number 456.765.
I will be thankful to u.
 
Posted on 05-07-06 11:54 AM     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

Did you try atof()? I don't know C that well, but most programming languages I use have this function.
 
Posted on 05-07-06 12:14 PM     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

RESOLUTION USE THIS

double atof(char *string)

HOPE THIS HELPS

OOHI SANOTINO PROGRAMMER
LOOTE
 


Please Log in! to be able to reply! If you don't have a login, please register here.

YOU CAN ALSO



IN ORDER TO POST!




Within last 60 days
Recommended Popular Threads Controvertial Threads
What are your first memories of when Nepal Television Began?
Basnet or Basnyat ??
निगुरो थाहा छ ??
TPS Re-registration case still pending ..
nrn citizenship
ढ्याउ गर्दा दसैँको खसी गनाउच
अमेरिकामा बस्ने प्राय जस्तो नेपालीहरु सबै मध्यम बर्गीय अथवा माथि (higher than middle class)
Send Parcels from USA to Nepal & Worldwide.
Why is every youths leaving Nepal? Why are not youths entering politics and serving the country, starting business etc?
TPS Work Permit/How long your took?
कल्लाई मुर्ख भन्या ?
Travelling to Nepal - TPS AP- PASSPORT
Morning dharahara
महँगो अण्डाको पिकल्प : कुखुरा र खोर भाडामा लिने
Travelling on TPS advance travel document to different country...
काेराेना सङ्क्रमणबाट बच्न Immunity बढाउन के के खाने ?How to increase immunity against COVID - 19?
Informatica consultancy share
मन भित्र को पत्रै पत्र!
TPS Renewal Reregistration
Nepali doctors future black or white usa ?
NOTE: The opinions here represent the opinions of the individual posters, and not of Sajha.com. It is not possible for sajha.com to monitor all the postings, since sajha.com merely seeks to provide a cyber location for discussing ideas and concerns related to Nepal and the Nepalis. Please send an email to admin@sajha.com using a valid email address if you want any posting to be considered for deletion. Your request will be handled on a one to one basis. Sajha.com is a service please don't abuse it. - Thanks.

Sajha.com Privacy Policy

Like us in Facebook!

↑ Back to Top
free counters