Five Stars

Subtracting big decimal values

Can some one help me to perform subtraction between two big decimals. 

Example:

 

a   b     o/p

5   2.5  2.5

 

Thanks in advance.

Crteja

1 ACCEPTED SOLUTION

Accepted Solutions
Forteen Stars TRF
Forteen Stars

Re: Subtracting big decimal values

Assume both fields are declared as BigDecimal:
a.subtract(b)

TRF
1 REPLY
Forteen Stars TRF
Forteen Stars

Re: Subtracting big decimal values

Assume both fields are declared as BigDecimal:
a.subtract(b)

TRF