N64® Functions Menu

al - Audio Library Functions
gDP - DP GBI Macros
gdSP - General GBI Macros
gSP - SP GBI Macros
gt - Turbo Microcode RDP
gu - Graphics Utilities
Math - Math Functions
nuSys - NuSystem
os - N64 Operating System
sp - Sprite Library Functions
uh - Host to Target IO
64DD - N64 Disk Drive

Nintendo® Confidential

   

strtod

Format
#include <string.h>
double strtod (const char *string, char **endptr)


Arguments
  • string is the pointer to the character string that is to be converted to a numeric double value
  • endptr is the pointer to the pointer to a string of unrecognizable characters
Return Value
The converted numeric value of the double type

What This Function Does
It converts the string specified by the string argument to a numeric value of the double type. It parses the character string by using this format:

[whitespace][{sign}][digits][.digits][{e|E}[sign]digits]

Where:
  • whitespace consists of one or more spaces, NULL characters, or tab characters
  • sign is + or -
  • digits is the decimal character string consisting of more than one digit
As shown, an exponent part following e or E can be placed after the decimal number. Conversion is terminated when an unrecognizable character appears as a part of number. If endptr is not NULL, you can set a pointer to *endptr to determine which unrecognized character terminated the conversion.

Note
This standard function comes with NuSystem.


Nintendo® Confidential

Warning: all information in this document is confidential and covered by a non-disclosure agreement. You are responsible for keeping this information confidential and protected. Nintendo will vigorously enforce this responsibility.


Copyright © 1998
Nintendo of America Inc. All rights reserved
Nintendo and N64 are registered trademarks of Nintendo
Last updated January 1998