Select to view content in your preferred language

Arcade Calculation not lining up with calculator answer

109
2
Jump to solution
Tuesday
AdminCMWCGIS
New Contributor

Howdy everyone, I'm working on setting a field calculation rule in field maps to calculate GPM. However, I am running into an issue where the answer coming out of arcade makes absolutely no sense. Using a test value where I know the result should be ~2.13 I keep getting an answer of 2,235. No idea what I am doing wrong here, as when I use the exact same format in a calculator I get the correct answer. I am no stranger to doing math with arcade but this one has me completely stumped.

What am I missing here?

Thanks!Arcade2.pngCalculator.png

0 Kudos
1 Solution

Accepted Solutions
KenBuja
MVP Esteemed Contributor

Use the Pow function to raise x to the power of y

var D = 0.7;
if (IsEmpty(D)) return null;
return Pow(D - .62, 2.48) * 2.49 * 448.8;

Snag_1873858.png

View solution in original post

2 Replies
KenBuja
MVP Esteemed Contributor

Use the Pow function to raise x to the power of y

var D = 0.7;
if (IsEmpty(D)) return null;
return Pow(D - .62, 2.48) * 2.49 * 448.8;

Snag_1873858.png

AdminCMWCGIS
New Contributor

Thank you!

0 Kudos