Code: Select all
List<UserVariable> userVariables = new ArrayList<>();
System.out.println(Math.round(100f * health) / 100f);
userVariables.add(new SFSUserVariable(UserVariableKeys.HEALTH, Math.round(100f * health) / 100f));
sfsApi.setUserVariables(user, userVariables);
For example I want to add a user variable which is rounded to 2 decimals, but on admin tool show that number with maximum number of decimals added. This causes an extra traffic, why this is happening?