c string/string to long double

Hi I would like to ask how I can convert string to long double for further calculation in long double format?

Let's say i got
c string phase = 0.000000789 or 507890123.005
and i want to convert from cstring to long double and want to do
Accphase = phase + Accphase //in long double format

How to do that? You could provide solution in C or C++.I could try both.Thanks
Last edited on
Last edited on
Registered users can post here. Sign in or register to post.