-
-
Notifications
You must be signed in to change notification settings - Fork 6
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trignometric function: choose the default unit (degrees, radians or gradians) #446
Comments
Hi, The removing of Why don't/can't you specify your units in expression (like: |
Hi, It is true that I did not give the reason for the choice of the unit (radian) Originally, in our case, the use of calculation expression was based on Excel. Documentation for Excel ( The indication of a unit in an expression is not desired because we try to keep the same notation as Excel as much as possible. However, I understand that adding units directly to expressions is also a good idea. |
Unfortunately, I don't see any good solution here.
|
Hi,
Describe the bug
I have a different result with a same expression due to a version incompatibility.
v. 3.7.3 => "cos(50)" return "0,96496602849..." (with
processor.Parameters.AngleMeasurement = AngleMeasurement.Radian
)v. 4.0.1 => "cos(50)" return "0,64278760968..." (cannot specify a unit)
I choose to set all trigonometric function are in radians, and I don't want unit specified in the expression.
In version 3.7.3
In version 3.7.3, we could choose the unit of trigonometric functions (cos, sin, etc.) by default with the following code:
In version 4.0.1
I cannot specified the default unit for trigonometric function. In this version, the expression
cos(50)
is to degree.Expected behavior
Trignometric function (cos, sin, tan, acos, asin, atan, etc.): choice of the default unit when the expression does not mention it, as :
You can set "AngleMeasurement.Degree" when
processor.Parameters.AngleMeasurement
value is not specified (null value).Actual behavior
The trignometric function is to degree and I cannot choose the default unit.
See also: https://github.com/sys27/xFunc/wiki/Breaking-Changes
I am available if need more details.
Regards,
The text was updated successfully, but these errors were encountered: