function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Nikhil M KumarNikhil M Kumar 

What does it actually mean by the error "arithmetic expressions must use numeric arguments" ?

Best Answer chosen by Nikhil M Kumar
Foram Rana RForam Rana R
Hi Nikhil,

I hope you are doing well .....!!

Error: arithmetic expressions must use numeric arguments

Means: Let's understand by taking one example.

suppose I have one one expression : variable1 + variable2
Here variable1 and variable2 must have numeric(0,1,2,3,4...) values.
If we assign variable1 = 'test' (String values) then you got "arithmetic expressions must use numeric arguments" Error.
make sure both variables having the same datatype if you set as decimal then both should be decimal.

Hope this helps you.
If this helps kindly mark it as solved so that it may help others in the future.

Thanks & Regards,
Foram Rana

All Answers

Foram Rana RForam Rana R
Hi Nikhil,

I hope you are doing well .....!!

Error: arithmetic expressions must use numeric arguments

Means: Let's understand by taking one example.

suppose I have one one expression : variable1 + variable2
Here variable1 and variable2 must have numeric(0,1,2,3,4...) values.
If we assign variable1 = 'test' (String values) then you got "arithmetic expressions must use numeric arguments" Error.
make sure both variables having the same datatype if you set as decimal then both should be decimal.

Hope this helps you.
If this helps kindly mark it as solved so that it may help others in the future.

Thanks & Regards,
Foram Rana
This was selected as the best answer
Nikhil M KumarNikhil M Kumar
Thanks @Forum_Rana_R ..Clarified on this one!