mirror of
https://github.com/neocities/neocities.git
synced 2025-06-28 23:23:22 +02:00
event deleting
This commit is contained in:
parent
6277a94a5b
commit
a4a2b5165b
14 changed files with 105 additions and 31 deletions
9
ext/numeric.rb
Normal file
9
ext/numeric.rb
Normal file
|
@ -0,0 +1,9 @@
|
|||
class Numeric
|
||||
def roundup(nearest=10)
|
||||
self % nearest == 0 ? self : self + nearest - (self % nearest)
|
||||
end
|
||||
|
||||
def rounddown(nearest=10)
|
||||
self % nearest == 0 ? self : self - (self % nearest)
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue