Forum Discussion
I tried multiple variations and double / rounding conversions (examples above), but no luck. The error does change to my string value: NaN in the error log though.
Could you try storing the values that you're using in the formula as a double prior to the final calculation? I don't really know how it works behind the scenes but wondering if, due to the datatype of the source variables(s), it tries to implicitly store the value as a decimal prior to assigning it to the output variable/cell amount.
So,
dim x as double = someDecimal
dim y as double = someDecimal
dim z as double = x^y
Just clutching at straws
- CAIGuySeanF2 years agoContributor
It seems to be failing at the exponent part of this approach (Dim z). What is odd, it looks like negative value is causing an issue. Testing a Dim with an abs() renders. I guess I could do "IF" logic to adjust, but that's odd to me that I couldn't leverage a negative value on an exponent double?
See examples below:
Dim Double
Result: No longer and error message, but noData being returned.
Making the base value ABS
Result Renders (obviously not the math I want, but the calc runs)
- CAIGuySeanF2 years agoContributor
This seems to be working.. although, I'm still not exactly sure why I need to call it this way.
Related Content
- 12 months ago
- 8 months ago
- 6 months ago
- 3 years ago