So I am trying to parse a string containing a number too large for Int storage. But I need the value of the string because I am dividing it. Can I parse the string into a Long?
n = Long.parseLong(string);
like that? Or is there a way I can divid the string by a number without having to turn the string into a number? The code I am using is like this:
private static String getFinished(String x, int y){
int word = Integer.parseInt(x);
word = word/y;
And the number I am using is: 1980715126555015951540148577071512651650 But I could potentially be using numbers even longer.