Hi -
I've read in the documentation that the UpdatePlayerStatistics only accepts a string identifier and an int for individual statistics. Is there any way to send a double instead? My game uses really big numbers.
Thanks!
,It looks like UpdatePlayerStatistics is looking for a string identifier and a value which is an int. Is there a way to send a double instead of an int? Our game uses very big numbers.
Thanks!
Answer by Brendan · Jan 17, 2018 at 11:32 PM
As stated here (https://community.playfab.com/questions/6017/my-statistic-exceed-int32-value-limit.html) statistics are specifically Int32 values. Please see that thread for more details on that.
For games using large number libraries, you would need to either use a computed form for your statistics (putting an exponent in the high bits, and a simple value in the low bits, as a way to express large numbers is quite effective), or else use an external data service for managing those values in a leaderboard.
Great answer! Thanks, Brendan (and sorry for the ironically double post) :)
g