We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
with code
%dw 2.0 output application/json import * from dw::util::Math --- logn(2)/logn(5)
Getting output as
Unable to call: `/` with arguments: (`Number | NaN`, `Number | NaN`). Reasons: - Expecting Type: `Number`, but got: `NaN`. |-- From: `Number` |- From: /(lhs: Number, rhs: Number) -> Number 439| fun logn(a: Number): Number | NaN = native("system::LognFunctionValue") ^^^ - Expecting Type: `Number`, but got: `NaN`. |-- From: `Number` |- From: /(lhs: Number, rhs: Number) -> Number 439| fun logn(a: Number): Number | NaN = native("system::LognFunctionValue") ^^^ - 1 more options ... 5| logn(2)/logn(5) ^^^^^^^^^^^^^^^ Location: main (line: 5, column:1)
But typeOf(logn(2)) is "Number"
If we do type casting then it is working. Type casting should not be required if the type is already Number.
The below codes work fine
%dw 2.0 output application/json import * from dw::util::Math --- logn(2) as Number/logn(5) as Number
The text was updated successfully, but these errors were encountered:
No branches or pull requests
with code
Getting output as
But typeOf(logn(2)) is "Number"
If we do type casting then it is working. Type casting should not be required if the type is already Number.
The below codes work fine
The text was updated successfully, but these errors were encountered: