Skip to main content
July 23, 2020
Question

Simple Subtraction, incorrect answer. Help!

  • July 23, 2020
  • 1 reply
  • 250 views

Okay, I am simply trying to test my form, here's my example: I have 100,000 in 'FieldOne",  800,000 in 'FieldTwo', and the following script in the answer field:

var a = +getField("FieldOne").value;
var b = +getField("FieldTwo").value;
event.value=a-b

 

And the answer I'm getting is -700,000.

On the flip side, when I try addition the answer is 900,000.

 

This is totally bizarre and so frustrating. How do I fix this?

 

TIA

This topic has been closed for replies.

1 reply

Inspiring
July 23, 2020

Answer is correct 100000-800000= - 700000

Try b-a 🙂 

July 23, 2020

OMG, wow. I guess after awhile I started seeing 800,000 as 80,000 in my brain! lmao, wow. Thanks!