McTwist / BigInteger.cs

Port of BigInteger.js to TorqueScript
1 stars 1 forks source link

Negative numbers are ignored in math operations #1

Open Permamiss opened 4 years ago

Permamiss commented 4 years ago

When using .add, .subtract, .multiply or .divmod, signs are ignored. Also, calculations of 2 positive numbers that should result in negative end up "underflow"ing into the base (i.e. 1+ -9 = 991).

Permamiss commented 4 years ago

Working on editing the code to fix this presently, but cannot guarantee success.

Permamiss commented 4 years ago

Resolved in #4 .

McTwist commented 4 years ago

Issues are not resolved until merged into master.

Permamiss commented 4 years ago

Welp, that's embarassing.