You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not so much an issue, rather a question re cba_fnc_floatToString. I have, on rare occasion, been sending values of 0 to this function. The result is a thrown error but nothing broken. Having taken a look at it, I can see that it is highly bare bones and designed to run super-duper fast which is great. Is there a possibility of catching this value of "0" in the function or should this be included before?
eg:
private _string = if (_float isEqualto 0) then {"0";} else {float call cba_fnc_floatToString;};
Thanks!
The text was updated successfully, but these errors were encountered:
Not so much an issue, rather a question re cba_fnc_floatToString. I have, on rare occasion, been sending values of 0 to this function. The result is a thrown error but nothing broken. Having taken a look at it, I can see that it is highly bare bones and designed to run super-duper fast which is great. Is there a possibility of catching this value of "0" in the function or should this be included before?
eg:
private _string = if (_float isEqualto 0) then {"0";} else {float call cba_fnc_floatToString;};
Thanks!
The text was updated successfully, but these errors were encountered: