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

Cap TeacherCon workshops at 33.5 hours #16120

Merged
merged 2 commits into from Jun 29, 2017
Merged

Cap TeacherCon workshops at 33.5 hours #16120

merged 2 commits into from Jun 29, 2017

Conversation

aoby
Copy link
Contributor

@aoby aoby commented Jun 27, 2017

No description provided.

@aoby
Copy link
Contributor Author

aoby commented Jun 28, 2017

Leveraged ActiveSupport::NumberHelper.number_to_rounded to round to the nearest tenth of an hour and display nicely.

See:

irb(main):005:0* [33, 33.5, 33.6, 33.75, 34.00001].map{|n| number_to_rounded(n, precision: 1, strip_insignificant_zeros: true)}
=> ["33", "33.5", "33.6", "33.8", "34"]

@aoby aoby merged commit 3a40374 into staging Jun 29, 2017
@aoby aoby deleted the teachercon-max-hours branch June 29, 2017 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants