Fix stdlib typos and logic bugs: Round precision arg; rename Trancate->Truncate; correct degrees/radians conversion; wrapangle shift into range; Random rands add lower; correct gcd/lcm names/logic; fix 13! constant; clarify atan2 args; update initializer registrations

This commit is contained in:
Jordan Wages 2025-08-21 03:52:26 -05:00
commit 736f05a023
11 changed files with 22 additions and 17 deletions

View file

@ -66,7 +66,7 @@ namespace CSMic.StandardLibrary
inputInterpreter.RegisterFunction(new Factorial());
inputInterpreter.RegisterFunction(new BinomialCoefficient());
inputInterpreter.RegisterFunction(new Permutations());
inputInterpreter.RegisterFunction(new GreatestCommonDevisor());
inputInterpreter.RegisterFunction(new GreatestCommonDivisor());
inputInterpreter.RegisterFunction(new LeastCommonMultiple());
}
@ -80,7 +80,7 @@ namespace CSMic.StandardLibrary
inputInterpreter.RegisterFunction(new Floor());
inputInterpreter.RegisterFunction(new Ceiling());
inputInterpreter.RegisterFunction(new Fractional());
inputInterpreter.RegisterFunction(new Trancate());
inputInterpreter.RegisterFunction(new Truncate());
inputInterpreter.RegisterFunction(new Round());
inputInterpreter.RegisterFunction(new Clamp());
}