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:
parent
47e6ea91d7
commit
736f05a023
11 changed files with 22 additions and 17 deletions
|
|
@ -16,6 +16,7 @@
|
|||
get
|
||||
{
|
||||
yield return new FunctionArgument("value", FunctionValue.NUMBER);
|
||||
yield return new FunctionArgument("precision", FunctionValue.NUMBER);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -26,7 +27,7 @@
|
|||
var inputValue = _args[0].Value;
|
||||
decimal value = Convert.ToDecimal(inputValue.Value);
|
||||
var inputPrecision = _args[1].Value;
|
||||
decimal precision = Convert.ToDecimal(inputValue.Value);
|
||||
decimal precision = Convert.ToDecimal(inputPrecision.Value);
|
||||
precision = Math.Round(precision);
|
||||
int precisionInt = Convert.ToInt32(precision);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue