This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

strtodb()

Hello,
I am trying to use the function "strtodb" to convert hex-strings to double bits.
I am including <stdlib.h> and <stdio.h>, but the linker complains
"Error 140: 'strtodb' undefined; assuming .... ".
What could be the problem?
Holger

Parents
  • "What could be the problem?"

    Maybe your assumption that there exists such a function in the language standard.

    What do you even mean by "double bits"?

    The closest I know about is strtod() - notice that there is no "b" in the name - that converts a number in ASCII format to a double-precision floating point number.

    But I hope you do not hope to use double-precision floating point numbers with a 8051 processor. Have you - by the way - checked the full documentation for the compiler, regarding use of floating point, and the availability of single and double precision?

Reply
  • "What could be the problem?"

    Maybe your assumption that there exists such a function in the language standard.

    What do you even mean by "double bits"?

    The closest I know about is strtod() - notice that there is no "b" in the name - that converts a number in ASCII format to a double-precision floating point number.

    But I hope you do not hope to use double-precision floating point numbers with a 8051 processor. Have you - by the way - checked the full documentation for the compiler, regarding use of floating point, and the availability of single and double precision?

Children
No data