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