Developers Darkmyre 191 Posted January 23, 2023 Developers Share this comment I can't replicate this nor see how it could be occurring. I've only ever seen 'nan' in the context of JavaScript, but those values are generated directly in PHP where they shouldn't even be possible (nan = Not A Number, when you try to perform number functions on a string. PHP typically just forces it to be a number in this case). Are you still seeing this, and if so is it just on this one company? Link to comment Share on other sites More sharing options...
Administrators Zoltan 120 Posted January 24, 2023 Administrators Share this comment It's only this company afaik https://play.vnations.net/showcompany.php?id=2857 And it's still "nan", but this is the last added company type "narcotics", perhaps it's not finished yet or something? Link to comment Share on other sites More sharing options...
Developers Darkmyre 191 Posted January 25, 2023 Developers Share this comment Looks like the issue was that company hasn't bought any resources in a long time (probably since I don't think the company type is finished). This was causing a divide by zero error when calculating avg cost. Fix will be in this month's update (should be working now on beta). 1 Link to comment Share on other sites More sharing options...
Recommended Comments
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now