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
.
精彩评论