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

Implement a method for accurately measuring the sizes of small commas #31

Merged
merged 1 commit into from
Apr 26, 2024

Conversation

frostburn
Copy link
Member

No description provided.

src/index.ts Outdated
* @returns The dot product.
*/
export function dotPrecise(a: NumberArray, b: NumberArray): number {
const terms = [];
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sum() takes iterables so temporary storage is not needed here.

Add a polyfill for Array.sumPrecise.
Implement monzoToBigNumeratorDenominator.
Implement dotPrecise.
@frostburn frostburn merged commit c133dd1 into main Apr 26, 2024
1 check passed
@frostburn frostburn deleted the monzo-cents-2 branch April 26, 2024 10:38
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 this pull request may close these issues.

1 participant