Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overwrite Unity's way of converting numbers to standard form. #1

Open
EdgeKing810 opened this issue Nov 3, 2018 · 0 comments
Open
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@EdgeKing810
Copy link
Member

EdgeKing810 commented Nov 3, 2018

Please go through /Assets/Scripts/BasicHandler.cs and understand each part of it well before attempting to fix this issue. Also, experiment in the Editor and submit any errors/issues/improvements.

So, let's begin with the beginning 馃槀. I am assuming you'll be understanding what I said since you needed to go through the main script. Since I am using the double type for the end result, Unity will convert values more than 10^(16) or less than 10^(-16) to standard form (I think so). The problem is that these limits are too far.

What needs to be done then?

  • The values must be transformed to standard form as soon as they are more than 10^(7) or less than
    10^(-7).
  • Values in standard form must have a maximum number part of 4 significant figures. (e.g 1.234E+20)
  • Do not forget what needs to be done if the last digit is more than 5!
  • This should be used on the End Result variable (Result) in the EqualTo() function ONLY.
  • You can write another function or integrate all that in the ClarifyExponential() function itself. Good Luck!
@EdgeKing810 EdgeKing810 added enhancement New feature or request good first issue Good for newcomers labels Dec 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant