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

Make yields inherit type if given something other than Float64 #107

Open
alecloudenback opened this issue Jun 6, 2022 · 1 comment · May be fixed by #131
Open

Make yields inherit type if given something other than Float64 #107

alecloudenback opened this issue Jun 6, 2022 · 1 comment · May be fixed by #131

Comments

@alecloudenback
Copy link
Member

For example, if user provides input rates that are Float32 then the yield curve could inherit that type. I think right now it'd get promoted to Float64 in all cases

@alecloudenback
Copy link
Member Author

Interestingly, if given DecFP.Dec64 rates/maturities then the zero rate will be Dec64, but Float32 still gets converted to Float64 (ref #130)

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

Successfully merging a pull request may close this issue.

1 participant