Skip to content

Conversation

@OptimusOpus
Copy link
Collaborator

No description provided.

@OptimusOpus OptimusOpus requested a review from bazmatic January 9, 2024 06:37
public fraction(numerator: number, denominator: number): BigUnit {
if (isNaN(numerator) || isNaN(denominator)) {
public fraction(numerator: BigUnitish, denominator: BigUnitish): BigUnit {
const numeratorNumber = Number(numerator);
Copy link
Owner

@bazmatic bazmatic Jan 9, 2024

Choose a reason for hiding this comment

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

No need to do any number checking now... but you can't necessarily cast BigUnitish into number anyway

@OptimusOpus OptimusOpus marked this pull request as draft January 9, 2024 07:01
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.

3 participants