Skip to content

Commit

Permalink
Fixed bug. #99 (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
AttilaMihaly authored Jul 20, 2021
1 parent 6c2992e commit d408495
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions morphir/sdk/core/src/morphir/sdk/Decimal.scala
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package morphir.sdk
import morphir.sdk.Maybe.Maybe
import java.math.{ BigDecimal => BigDec }

import morphir.sdk.Basics.Order
import morphir.sdk.Maybe.Maybe

import java.math.{ BigDecimal => BigDec }
import scala.util.control.NonFatal

object Decimal extends DecimalModuleCompat {
Expand Down Expand Up @@ -78,7 +79,7 @@ object Decimal extends DecimalModuleCompat {
Decimal(n * 0.01)

def gt(a: Decimal)(b: Decimal): morphir.sdk.Bool.Bool = a.compareTo(b) > 0
def gte(a: Decimal)(b: Decimal): morphir.sdk.Bool.Bool = a.compareTo(b) >= 1
def gte(a: Decimal)(b: Decimal): morphir.sdk.Bool.Bool = a.compareTo(b) >= 0

def lt(a: Decimal)(b: Decimal): morphir.sdk.Bool.Bool = a.compareTo(b) < 0

Expand Down

0 comments on commit d408495

Please sign in to comment.