diff --git a/src/main/java/org/swrlapi/builtins/swrlb/SWRLBuiltInLibraryImpl.java b/src/main/java/org/swrlapi/builtins/swrlb/SWRLBuiltInLibraryImpl.java index d1f8040b..015d0fa5 100644 --- a/src/main/java/org/swrlapi/builtins/swrlb/SWRLBuiltInLibraryImpl.java +++ b/src/main/java/org/swrlapi/builtins/swrlb/SWRLBuiltInLibraryImpl.java @@ -1524,7 +1524,7 @@ private boolean mathOperation(@NonNull String builtInName, @NonNull List<@NonNul } else if (builtInName.equalsIgnoreCase(SWRLB_POW)) { int argument3 = convertArgumentToAnInt(2, arguments); BigDecimal argument2 = getArgumentAsADecimal(1, arguments); - operationResult = argument2.pow(argument3); + operationResult = argument2.pow(argument3, mathContext); } else if (builtInName.equalsIgnoreCase(SWRLB_UNARY_PLUS)) { BigDecimal argument2 = getArgumentAsADecimal(1, arguments); operationResult = argument2;