Why not use bigint instead of int for currencies?

Issue #586 wontfix
Adam Khalifa created an issue

I know this is kinda silly, but using bigint would be much better.

Int has a max value of 2147483647. Approx 2.1 billion. Now depending on the economy the hotel has, and how long the hotel has been up for this will be an issue in the future. I've seen it before where hotels had the an economy where millions of credits were normal to have for a newly registered user, but after a while someone got over the max value and that makes them go -2147483647. You might be able to restrict this in command, you might also be able to restrict it with redeeming, but i think it would be better to use bigint which has a max value of 9223372036854775807. Or mabe having that as some type of plugin idk.

I understand it might be a 32-bit 64-bit issue but it's just a sugguestion.

Comments (2)

  1. Log in to comment