Skip to main content

split_numeric_parts

Function split_numeric_parts 

Source
fn split_numeric_parts(numeric_str: &str) -> Result<(String, String), String>
Expand description

Split a numeric string into integer and fractional parts.

Accepts “123”, “123.”, “.5”, “123.456”. Rejects negatives and non-digits.