Professional Documents
Culture Documents
long cutoff =
(long)math.pow((double)10,
(double)(i*3));
if ( n >= cutoff ) {
string += groups[i];
n = n % cutoff;
}
}
if (string.length() == 0) {
string = "zero";
} else {
// remove initial space
string = string.substring(1);
}
}
}