3

In the data constructor, I have following statement:

        this.data1 = Reve/1000;

This statement is working fine.

Now I want to calculate the absolute value so I rewrite this statement as:

        this.data1 = ABS(Reve/1000);

and it gives an error: Method does not exist or incorrect signature: ABS(Decimal)

What am I doing wrong?

5

try:

 this.data1 = math.abs(Reve/1000);

more info on the official doc

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.