Skip to content

Parsing a String to Float #596

Answered by udoprog
physics515 asked this question in Q&A
Discussion options

You must be logged in to vote

Did you try?

let price = f64::parse(json[0]["assetPriceUSD"])?;

Note that float has been renamed to f64 in main, but not yet released.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@physics515
Comment options

Answer selected by physics515
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants