For example, when storing a percentage stat value with decimal points, Has the same value as 1.54% (combined status Value) ( formula return 1.54) However, since the status value is an "int" value, it seems that the float formula value cannot be saved. ( 1.54f > 1 ) In this case, how do I connect the formula value of float to the status value, which is an int value? Thanks!!
As you noticed, status values are integers - via rounding in the formula you can e.g. change 1.54 to 2, but you can't store 1.54 into an integer, as it'll become 1.
An option would be to scale up the value, e.g. 1.54 to 154 (i.e. multiply by 100).
Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found. If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
An option would be to scale up the value, e.g. 1.54 to 154 (i.e. multiply by 100).
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!