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
Solution: Changing the format to "F7" outputs 0.0000250, however this also outputs BobDamping=0.96 as BobDamping=0.9600000, using "G7" gives us a compact output, but it doesn't fix the first problem 👎🏻
Should we just strip the trailing zeros? Or is there a way to get the results of F7 in a compact form like G7?
The text was updated successfully, but these errors were encountered:
Floats are sometimes not formatted properly, especially if they have many decimals e.g.
Script:
splashSize = 0.000025 * Mass * (250 - 0.5 * Velocity.Z);
Compiled->Decompiled to:
splashSize = (2.5E-05 * Mass) * (float(250) - (0.5 * Velocity.Z));
The decompilation of floats is handled at PropertyDisplay
Solution: Changing the format to "F7" outputs
0.0000250
, however this also outputsBobDamping=0.96
asBobDamping=0.9600000
, using "G7" gives us a compact output, but it doesn't fix the first problem 👎🏻Should we just strip the trailing zeros? Or is there a way to get the results of F7 in a compact form like G7?
The text was updated successfully, but these errors were encountered: