public BigDecimal (char[] in, MathContext mc)

Translates a character array representation of a BigDecimal into a BigDecimal, accepting the same sequence of characters as the BigDecimal(String) constructor and with rounding according to the context settings.

Note that if the sequence of characters is already available as a character array, using this constructor is faster than converting the char array to string and using the BigDecimal(String) constructor .

Parameters:
in    char array that is the source of characters.
mc    the context to use.

Exceptions:
ArithmeticException    if the result is inexact but the rounding mode is UNNECESSARY.
NumberFormatException    if in is not a valid representation of a BigDecimal.

Since:  1.5