cancel
Showing results for 
Search instead for 
Did you mean: 

Calculation error

Former Member
0 Kudos

Hello friends,

I developed smartforms for sales invoice in that i want to add VAT% in pricing condition, so for this purpose i used formula as given below.

var1 = <VAT AMOUNT> * <VAT%> / 100

when i am using VAT% like 12.5% error is coming statement "5" is not defined check your spelling. so what will be the possible solution for this error. Please reply as soon as possible.

Thanx & regards,

Rahul Talele

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi Rahul,

Put Bracket like this ,

var1 = ( <VAT AMOUNT> * <VAT%> ) / 100

Thanx

bgan.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Change the data type of the vat% and var1 as Float.

Former Member
0 Kudos

Or you can do one thing.

Make your VAT% in to one variable ie.,

Per = Vat%*100.

When you are doing main calculation instead of VAT% use

Per/100.

I think this will solve your problem.

Thanks,