Skip to main content

parse

Function parse 

Source
pub fn parse(text: &str, width: Width) -> Result<(u128, Status), ParseError>
Expand description

The bits of the decimal constant text in this width, and what had to be done to it to fit.

text is what a decimal floating constant has in front of its df, dd or dl: digits with at most one point among them and an optional e exponent, and a sign in front if the caller has one to give. A hexadecimal constant has no decimal meaning, and C23 says so, so one is refused here as having a character a decimal number does not have.

ยงErrors

When the text has no digits, has an exponent marker with no digits after it, or has anything else in it.