INNER CODE UNIT · Rust
number
steineggerlab/folddisco · lib/pdbtbx-cif/src/lib.rs:326
let mut number = value as f32 + decimal;
if minus {
number *= -1.0;
}
if exponent_set {
number *= 10_f32.powi(exponent);
}
if uncertainty_set {
Some(Value::NumericWithUncertainty(number, uncertainty))
} else {
Some(Value::Numeric(number))
}
}
}
/// Parse an identifier, basically all chars until the next whitespace
fn parse_identifier<'a>(input: &mut Position<'a>) -> &'a str {
let mut chars_to_remove = 0;