-
Notifications
You must be signed in to change notification settings - Fork 113
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
Decimal support? #15
Comments
Maybe. pub trait Next<T> {
type Output;
fn next(&mut self, input: T) -> Self::Output;
} But why accuracy of f64 is not enough for your case? |
It's a no-floating-point project requirement (standard in certain financial software). |
I can understand this requirement for money transactions, accounting, etc.., But for technical analysis indicators it would not make much sense. Some indicators (.e.g. EMA) really depend on seed data and initial state. This often differ from implementation to implementation. With reasonable amount data fed, different implementation would show more or less same result (but not absolutely equal with crazy engineering precision) My point: this is not a reasonable requirement for TA indicators. |
Is it possible to plug in more accurate decimal types, such as https://github.com/paupino/rust-decimal ?
The text was updated successfully, but these errors were encountered: