Subtracting big decimal values

Six 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


Accepted Solutions
Forteen Stars TRF
Forteen Stars

Re: Subtracting big decimal values

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

TRF

All Replies
Forteen Stars TRF
Forteen Stars

Re: Subtracting big decimal values

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

TRF