aboutsummaryrefslogtreecommitdiffstats
path: root/library/moment/src/lib/utils/abs-ceil.js
blob: 7cf93290c5163e04ebaf381a03785a0d91b59587 (plain) (blame)
1
2
3
4
5
6
7
export default function absCeil (number) {
    if (number < 0) {
        return Math.floor(number);
    } else {
        return Math.ceil(number);
    }
}