public static String multiply ( String f1 , String f2 ) { BigDecimal factor1 ; BigDecimal factor2 ; try { factor1 = new BigDecimal ( f1 ) ; factor2 = new BigDecimal ( f2 ) ; } catch ( Exception ex ) { return null ; } return factor1 . multiply ( factor2 ) . toString ( ) ; }
Multiply two numbers together