Skip to content

Commit

Permalink
Remove the remaining comparison operator overrides for numbers.
Browse files Browse the repository at this point in the history
  • Loading branch information
Akirathan committed Mar 21, 2023
1 parent 95c0878 commit 0df66b1
Show file tree
Hide file tree
Showing 13 changed files with 1 addition and 596 deletions.
97 changes: 1 addition & 96 deletions distribution/lib/Standard/Base/0.0.0-dev/src/Data/Numbers.enso
Original file line number Diff line number Diff line change
Expand Up @@ -457,54 +457,6 @@ type Decimal
^ : Number -> Number
^ self that = @Builtin_Method "Decimal.^"

## Checks if this is greater than that.

Arguments:
- that: The number to compare this against.

> Example
Checking if 10 is greater than 7.3.

10 > 7.3
> : Number -> Boolean
> self that = @Builtin_Method "Decimal.>"

## Checks if this is greater than or equal to thatthat.

Arguments:
- that: The number to compare this against.

> Example
Checking if 10 is greater than or equal to 7.3.

10 >= 7.3
>= : Number -> Boolean
>= self that = @Builtin_Method "Decimal.>="

## Checks if this is less than that.

Arguments:
- that: The number to compare this against.

> Example
Checking if 10 is less than 7.3.

10 < 7.3
< : Number -> Boolean
< self that = @Builtin_Method "Decimal.<"

## Checks if this is less than or equal to thatthat.

Arguments:
- that: The number to compare this against.

> Example
Checking if 10.4 is less than or equal to 7.

10.4 <= 7
<= : Number -> Boolean
<= self that = @Builtin_Method "Decimal.<="

## Computes the absolute value of this.

The absolute value of a positive number is itself, while the absolute
Expand Down Expand Up @@ -682,54 +634,6 @@ type Integer
^ : Number -> Number
^ self that = @Builtin_Method "Integer.^"

## Checks if this is greater than that.

Arguments:
- that: The number to compare this against.

> Example
Checking if 10 is greater than 7.

10 > 7
> : Number -> Boolean
> self that = @Builtin_Method "Integer.>"

## Checks if this is greater than or equal to thatthat.

Arguments:
- that: The number to compare this against.

> Example
Checking if 10 is greater than or equal to 7.

10 >= 7
>= : Number -> Boolean
>= self that = @Builtin_Method "Integer.>="

## Checks if this is less than that.

Arguments:
- that: The number to compare this against.

> Example
Checking if 10 is less than 7.

10 < 7
< : Number -> Boolean
< self that = @Builtin_Method "Integer.<"

## Checks if this is less than or equal to thatthat.

Arguments:
- that: The number to compare this against.

> Example
Checking if 10 is less than or equal to 7.

10 <= 7
<= : Number -> Boolean
<= self that = @Builtin_Method "Integer.<="

## Computes the absolute value of this.

The absolute value of a positive number is itself, while the absolute
Expand Down Expand Up @@ -937,6 +841,7 @@ type Integer

parse_builtin text radix = @Builtin_Method "Integer.parse"


## UNSTABLE

A syntax error when parsing a double.
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 0df66b1

Please sign in to comment.