Skip to content
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

Type of Zero(), One()...etc in Arithmeric class #1

Open
ETASoft opened this issue Dec 25, 2012 · 0 comments
Open

Type of Zero(), One()...etc in Arithmeric class #1

ETASoft opened this issue Dec 25, 2012 · 0 comments

Comments

@ETASoft
Copy link

ETASoft commented Dec 25, 2012

Hi:
I wonder why "Double" type is used in creating Zero(), One(),... constants in Arithmeric class. I think the minimum numeric type "Int16" should be used so that it will not affect the type of the original Expression. For example, If I tried to multiply 0*1 constant Int32 expression using Arithmeric.Multiply it will return zero but in Double typec not in int32 type.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant