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

lotus-shed: add math command #3568

Merged
merged 1 commit into from
Sep 5, 2020
Merged

lotus-shed: add math command #3568

merged 1 commit into from
Sep 5, 2020

Conversation

travisperson
Copy link
Contributor

There are quite a few times I run into dealing with large numbers and I want to either add them all up or parse them into a more readable format. This is the start of that effort.

case "raw":
fmt.Printf("%s\n", val)
default:
return fmt.Errorf("Unknown format")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Probably better to use some factory method producer thingy so that we can get these error before reading all the numbers 🤷‍♂️

@magik6k magik6k merged commit 70da2b7 into master Sep 5, 2020
@magik6k magik6k deleted the feat/lotus-shed-math branch September 5, 2020 19:47
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