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
|
@ -26,7 +26,8 @@
|
|||
var input = _args[0].Value;
|
||||
decimal value = Convert.ToDecimal(input.Value);
|
||||
|
||||
return new FunctionValue(FunctionValueType.Numeric, double.RadiansToDegrees((double)value));
|
||||
// Convert degrees to radians
|
||||
return new FunctionValue(FunctionValueType.Numeric, double.DegreesToRadians((double)value));
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue