难道一个atolf C函数中的任何一个知道吗? [英] Does any one know of a atolf c function?
本文介绍了难道一个atolf C函数中的任何一个知道吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我要寻找类似蒂
(字符*长整型),但 atofl
(char,使其功能长双),没有人知道,这是否图书馆,或一个简单的方法来做到这一点的,因为使用 ATOF
在0.00000005甩开5?
谢谢。
I am looking for a function similar to atol
(char * to long int) but atofl
(char to long double), does anyone know of a library that does this, or a simple way to do this, since using
atof
on "0.00000005" casts off the 5?
Thanks.
推荐答案
有一个叫做的 的strtod
,你想要做什么。
There is a function called strtod
that does what you want.
这篇关于难道一个atolf C函数中的任何一个知道吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文