M
Marco Traverso
Hi all,
This may seem quite a basic question...
Is there a direct function to convert a double into a string? I'm used to
VBScript and it has the CStr function that does the job.
es. (vbScript)
Dim dN
Dim sString
dN =- Sqr(2)
sString = CStr(dN)
'sString returns "-1.4142135623731"
I've searched for a C / C++ function, and I found only the _ecvt
function (and other similar...).
Anyway they have slightly different input variables so the conversion is not
"automatic"
Is there a specific function or do I have to build my own?
Thank you in advance,
Marco
This may seem quite a basic question...
Is there a direct function to convert a double into a string? I'm used to
VBScript and it has the CStr function that does the job.
es. (vbScript)
Dim dN
Dim sString
dN =- Sqr(2)
sString = CStr(dN)
'sString returns "-1.4142135623731"
I've searched for a C / C++ function, and I found only the _ecvt
function (and other similar...).
Anyway they have slightly different input variables so the conversion is not
"automatic"
Is there a specific function or do I have to build my own?
Thank you in advance,
Marco