import Tablet.Assumptions import Tablet.Preamble import Tablet.num_imp_dec2flt_decimal_Decimal import Tablet.num_imp_dec2flt_parse_parse_partial_number open Aeneas Aeneas.Std Result ControlFlow Error set_option autoImplicit false noncomputable section namespace dec2flt_model -- [TABLET NODE: num_imp_dec2flt_parse_parse_number] /-- [dec2flt_model::num::imp::dec2flt::parse::parse_number]: Source: 'num/imp/../../dec2flt/parse.rs', lines 231:0-238:1 Visibility: public -/ def num.imp.dec2flt.parse.parse_number (s : Slice Std.U8) : Result (Option num.imp.dec2flt.decimal.Decimal) := -- BODY do let o ← num.imp.dec2flt.parse.parse_partial_number s match o with | none => ok none | some p => let (float, rest) := p let i := Slice.len s if rest = i then ok (some float) else ok none