#Parse float from []u8 slice

1 messages · Page 1 of 1 (latest)

sinful dust
#

Is there a way to parse a float from []u8 slice?

After looking around the web/docs, all I’ve come across is std.fmt.parseFloat, which appears to only be usable when the length is known at compile time.

grizzled canyon
#

what makes you think that? it can use runtime strings

sinful dust
#

This is a bit embarrassing. I posted this after stepping away from the code for a little bit, and went back and reviewed the errors I was getting from the compiler and I can't find where I was getting that impression from. There's no issue, I'm so sorry! 😓