[−][src]Function gobble::common::common_float
pub fn common_float<'a>(it: &LCChars<'a>) -> ParseRes<'a, f64>
use gobble::*; let r = common_float.parse_s("32.").unwrap(); assert_eq!(r, 32.); let r = common_float.parse_s("-23.4").unwrap(); assert_eq!(r, -23.4); let r = common_float.parse_s("-23.4e2").unwrap(); assert_eq!(r, -2340.); let r = common_float.parse_s("123.4e-2").unwrap(); assert_eq!(r, 1.234);