mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 04:08:19 +00:00
Add Num.withoutDecimalPoint
This commit is contained in:
parent
62cc19c64b
commit
9c664172dd
9 changed files with 25 additions and 4 deletions
|
@ -103,6 +103,7 @@ pub enum LowLevel {
|
|||
NumCountTrailingZeroBits,
|
||||
NumCountOneBits,
|
||||
I128OfDec,
|
||||
DecWithoutDecimalPoint,
|
||||
Eq,
|
||||
NotEq,
|
||||
And,
|
||||
|
@ -337,6 +338,7 @@ map_symbol_to_lowlevel! {
|
|||
NumCountTrailingZeroBits <= NUM_COUNT_TRAILING_ZERO_BITS;
|
||||
NumCountOneBits <= NUM_COUNT_ONE_BITS;
|
||||
I128OfDec <= I128_OF_DEC;
|
||||
DecWithoutDecimalPoint <= I128_OF_DEC;
|
||||
Eq <= BOOL_STRUCTURAL_EQ;
|
||||
NotEq <= BOOL_STRUCTURAL_NOT_EQ;
|
||||
And <= BOOL_AND;
|
||||
|
|
|
@ -1268,6 +1268,7 @@ define_builtins! {
|
|||
156 NUM_BYTES_TO_U128_LOWLEVEL: "bytesToU128Lowlevel"
|
||||
157 NUM_DIV_TRUNC_UNCHECKED: "divTruncUnchecked" // traps on division by zero
|
||||
158 NUM_REM_UNCHECKED: "remUnchecked" // traps on division by zero
|
||||
159 NUM_DEC_WITHOUT_DECIMAL_POINT: "withoutDecimalPoint"
|
||||
}
|
||||
4 BOOL: "Bool" => {
|
||||
0 BOOL_BOOL: "Bool" exposed_type=true // the Bool.Bool type alias
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue