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

Add full floating point support with divFloat function #19

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

paullinator
Copy link
Member

@paullinator paullinator commented Dec 5, 2023

CHANGELOG

Does this branch warrant an entry to the CHANGELOG?

  • Yes
  • No

Dependencies

none

Description

none

.vscode/launch.json Show resolved Hide resolved
@@ -323,10 +335,11 @@ function cropHex(x: string): string {
function floatShifts(
xStart: string | number,
yStart: string | number,
moreShift?: number
doFloat: boolean = false
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we make this a separate commit with a description of this internal function's signature?

Copy link
Member Author

Choose a reason for hiding this comment

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

Hmm. Check out the comment and see if that's enough clarity

Comment on lines +74 to +82
export function divf(x1: string, y1: string): string {
return div(x1, y1, true)
}
Copy link
Contributor

Choose a reason for hiding this comment

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

What happens when the decimal is repetitive?

Copy link
Member Author

Choose a reason for hiding this comment

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

what do you mean by repetitive?

Copy link
Contributor

Choose a reason for hiding this comment

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

What happens if x1 = '1' and y1 = '3'

src/index.ts Outdated Show resolved Hide resolved
src/index.ts Show resolved Hide resolved
src/index.ts Show resolved Hide resolved
src/index.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@samholmes samholmes left a comment

Choose a reason for hiding this comment

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

All the changes look good. The only open ended discussion is regarding performance impacts to changes in div. If we can isolate changes made to div and doFloat only for divf (true parameter for div), then that'd be ideal.

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.

2 participants