please
answer the code for string to double and string to long in c
bye

Re: string to long and string to double in c 80 80

please
answer the code for string to double and string to long in c
bye

To perform these tasks there are in built functions in C namely. atol (yourString) : string to long atof (yourString) : string to double

And asking directly for a code is not the way to success. First post your attempt and we would be definately there to help you out.

Re: string to long and string to double in c 80 80

Also see this thread

Re: string to long and string to double in c 80 80

hi i also face this issue atol works with less number of digits only.
for example i want to convert "2012051600000016" into number
for this atol,atof,strtoull, doe not work..
can any one help me out

Re: string to long and string to double in c 80 80
Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.