Hello! I am working on an Idle game in which there are 8 generators. Generator1 generates currency Generator2 generates Generator1 etc. For debugging I've set Generator2 to 500. When Generator1's count gets to ~10.400, Unity crashes. I have no idea why. Sometimes when it crashes it gives an error "Array index out of range" in the names array{"Million", "Billion", etc.}. This is the format function I use. Code (CSharp): public string FormatDouble(double number) { double _number = number; int i = 0; while(_number>=1000) { _number = _number / 1000; i++; } if(i<2) { return string.Format ("{0:#,0.###}", number); } else if(i>=2) { return string.Format("{0:0.000}", _number) + " " + names [i-2]; } else return "NaN"; }