开发者

list_to_float error

开发者 https://www.devze.com 2023-02-09 22:14 出处:网络
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

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

精彩评论

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

关注公众号