IF I use this:
float TempPCF = CreateFloor.PerCreateFake*100f;
float TempPSF = CreateFloor.PerStopFake*100f;
int TempPCFi = (int)TempPCF;
int TempPSFi = (int)TempPSF;
Debug.Log(""+TempPCFi);
Debug.Log(""+TempPSFi);
Debug.Log(""+TempPCF + " " + TempPSF);
I get resault
50
30
50 30
I like this resault
BUT arghhh with this:
float TempPCF = CreateFloor.PerCreateFake*100f;
float TempPSF = CreateFloor.PerStopFake*100f;
int TempPCFi = (int)TempPCF;
int TempPSFi = (int)TempPSF;
TempPCF -= TempPCFi;
TempPSF -= TempPSFi;
Debug.Log(""+TempPCFi);
Debug.Log(""+TempPSFi);
Debug.Log(""+TempPCF + " " + TempPSF);
I get resault:
50
30
0 1.907349E-06
ARGHHH HOW DA **** can he calculate 30-30 = 1.907349E-06
and I don’t belive 2 static have any kind of problems here as I’ve assign 2 temporary variables just for them
@sparkzbarca, 31.907349e-06 is not 30.000... , it is 0.0000319...
– Chronos-Lyea my bad i got the answer write though. :P
– sparkzbarca