Hi guys , I hope you can help me with this problem :
I want to play with value like 1 000 000 and as I understood only integer can have this value (dunno the max but it surely over 10 000 000 (also over 9000)) instead of float vaalue wich is 53X XXX.
I want to use this value in a bank system where you can get income every 5 minutes (2% to 5%) to raise the total value I need to make a calcul like this ("bank value" * (income/100) but I need float to do this cause result of (income/100) will be under 0, also I need to convert "bank value" to float(real) to be able to make the calcul but my problem is if integer value is over float max value (53X XXX) the result will be bugged and I cant do anything ....
Maybe you have this problem too , and I need your help.
I never faced this problem, but I can suggest you to use 123.456789 fixed instead of 123456789 int, having in mind that your number is million times less then your actual number.
Hi guys , I hope you can help me with this problem :
I want to play with value like 1 000 000 and as I understood only integer can have this value (dunno the max but it surely over 10 000 000 (also over 9000)) instead of float vaalue wich is 53X XXX.
I want to use this value in a bank system where you can get income every 5 minutes (2% to 5%) to raise the total value I need to make a calcul like this ("bank value" * (income/100) but I need float to do this cause result of (income/100) will be under 0, also I need to convert "bank value" to float(real) to be able to make the calcul but my problem is if integer value is over float max value (53X XXX) the result will be bugged and I cant do anything ....
Maybe you have this problem too , and I need your help.
I never faced this problem, but I can suggest you to use 123.456789 fixed instead of 123456789 int, having in mind that your number is million times less then your actual number.
"bankvalue/10" * (income/10)
first part as integer math
int bank value = 1M
in editor :
Real Value = ((ConvertToReal(bankvalue))/10)
ConvertoReal will be equal to 500K max
also if int bank value = 123456789/10 = 12345678 so I lose a number