Bug Report: createPrefItemNumber using a Float is complicated and buggy #3888
Labels
status: pending triage
The bug or PR has not been reviewed yet.
type: minor bug
Involves a minor bug or issue.
Issue Checklist
Platform
Itch.io (Downloadable Build) - Windows
Browser
None
Version
0.5.2
Description (include any images, videos, errors, or crash logs)
I try to make an custom Preference Option with Float instead of Int, and when I tried to go from 0.3 or higher down to 0, it returns an odd number.
This is my code:
And this is the method that I use that is from the base game:
As you see in the image it shows basically 2.777777e^-17 etc, even tho the precision is set to 1 decimal after .
Also extra question, is there any way to set a float instead of int for the value and also save it even if you refresh the game and work properly?
Thanks for your help
Steps to Reproduce
The text was updated successfully, but these errors were encountered: