diff --git a/src/nodes/from_str.rs b/src/nodes/from_str.rs index 17d1bf6..a589612 100644 --- a/src/nodes/from_str.rs +++ b/src/nodes/from_str.rs @@ -115,7 +115,7 @@ impl FromStr for Nodes { } ParsingState::ReadingNumber(start_index) => { nodes.push(Node::Number( - Float::parse_radix(&filtered_string[start_index..i], 10) + Float::parse(&filtered_string[start_index..i]) .map_err(|e| { Error::NumberParsing(filtered_string[start_index..i].to_owned(), e) })?