Add Num.withDecimalPoint

This commit is contained in:
Fabian Schmalzried 2024-03-15 10:43:05 +01:00
parent 9c664172dd
commit 64e9899cad
No known key found for this signature in database
GPG key ID: D691D5DA4CEF42E7
12 changed files with 34 additions and 13 deletions

View file

@ -1172,9 +1172,9 @@ pub(crate) fn run_low_level<'a, 'ctx>(
// which could be useful to look at when implementing this.
todo!("implement checked float conversion");
}
I128OfDec | DecWithoutDecimalPoint => {
arguments!(dec);
dec_unary_op(env, bitcode::DEC_TO_I128, dec)
I128OfDec | NumWithoutDecimalPoint | NumWithDecimalPoint => {
arguments!(arg);
arg
}
Eq => {
arguments_with_layouts!((lhs_arg, lhs_layout), (rhs_arg, rhs_layout));