Java BigDecimal(char[] in, int offset, int len) Constructor
Syntax
BigDecimal(char[] in, int offset, int len) constructor from BigDecimal has the following syntax.
public BigDecimal(char[] in, int offset, int len)
Example
In the following code shows how to use BigDecimal.BigDecimal(char[] in, int offset, int len) constructor.
import java.math.BigDecimal;
//from ww w . j ava2 s. c om
public class Main {
public static void main(String[] args) {
char[] ch = new char[]{'1','2','3','4','5','6','7'};
BigDecimal bg1 = new BigDecimal(ch,2,3);
System.out.println(bg1);
}
}
The code above generates the following result.