ä¸
å°å符串转为浮ç¹æ°ï¼double atof(const char* pString);
åä¹ï¼
1对1æ¥å£ï¼char *ecvt(double dValue,int iNdig,int *pDec,int * pSign);
åæµ®ç¹æ¥å£ï¼char *fcvt(double dValue,int iNdig,int *pDec,int * pSign);
积æ°æ¥å£ï¼char *gcvt(double dValue,int iNdec,char* pBuf);
äº
串转为æ´åï¼int atoi(const char *pString);
åä¹ï¼
char *itoa(int iValue,char * pString,int iRadix);
ä¸
串转为é¿æ´åï¼long atol(const char *pString);
long strtod(const char *pString,char **ppEndptr,int iRadix);
å¦è½¬ä¸ºç»å®åºæ°çæ 符å·é¿æ´ï¼
unsigned long strtul(const cahr *pString,char **ppEndptr,int iRadix);
åä¹ï¼
char *ltoa(long lValue,char * pString,int iRadix);
å
串转为å精度ï¼
double strtod(const char * pString,char **ppEndptr);
å¦æä½ å¨è¿éè¿æ¾ä¸å°ä½ å欢çè¯ï¼å°±ç¨c-asmå§ï¼
è¿æ¯æå¯ä»¥æ³èµ·æ¥çææå½æ° äºã
å¤å¤äº¤æµ
温馨提示:答案为网友推荐,仅供参考