diff --git a/morphir/sdk/core/src/morphir/sdk/Basics.scala b/morphir/sdk/core/src/morphir/sdk/Basics.scala index 7b43798d..3fe25b06 100644 --- a/morphir/sdk/core/src/morphir/sdk/Basics.scala +++ b/morphir/sdk/core/src/morphir/sdk/Basics.scala @@ -108,6 +108,10 @@ object Basics { if (a < min) min else if (a > max) max else a + @inline def logBase(base: Float, number: Float): Float = + divide(scala.math.log(number))(scala.math.log(base)) + @inline def e: Float = + Math.E @inline def isNaN(a: Float): Bool = a.isNaN @inline def isInfinite(a: Float): Bool = a.isInfinite