开发者

list_to_float error

I understand that list_to_float("123") giv开发者_如何学Ces a badarg error but why list_to_float(["12.34"]) gives also the same error ?


Try

list_to_float("12.34")

list_to_float accepts a String and it returns a float whose text representation is the String.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜