mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 00:01:16 +00:00
feat(Str.toNum): support decimal
This commit is contained in:
parent
d8a3a961bf
commit
bc5b1abcba
5 changed files with 34 additions and 1 deletions
|
@ -5281,7 +5281,7 @@ fn run_low_level<'a, 'ctx, 'env>(
|
|||
Layout::Builtin(Builtin::Float(float_width)) => {
|
||||
&bitcode::STR_TO_FLOAT[float_width]
|
||||
}
|
||||
Layout::Builtin(Builtin::Decimal) => bitcode::STR_TO_DECIMAL,
|
||||
Layout::Builtin(Builtin::Decimal) => bitcode::DEC_FROM_STR,
|
||||
_ => unreachable!(),
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue