Skip to content

Conversation

@jarry-xiao
Copy link
Contributor

No description provided.

Copy link
Contributor

@throwbackjams throwbackjams left a comment

Choose a reason for hiding this comment

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

In a future PR, will add ability to read and adjust calc based on raw_base_units_per_base_unit

}

pub fn get_precision(mut target: u64) -> usize {
let is_prime = |x| {
Copy link
Contributor

Choose a reason for hiding this comment

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

this seems overly complicated. why not just divide by 2 until it's no longer divisible by 2, and divide by 5 until it's no longer divisible by 5?

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.

4 participants