DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR RUST
rust convert a string (with decimals) to a floating point number.
let f = s.parse::<f32>().unwrap(); // Can also do: let f: f32 = s.parse().unwrap();
PREVIOUS
NEXT
Tagged:
#rust
#convert
#string
#floating
#point
ADD COMMENT
Topic
COMMENT
Name
6+7 =
Submit