repo.or.cz
/
openemr.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Brought in another asset for Ray's eye form: moment
[openemr.git]
/
public
/
assets
/
moment-2-13-0
/
src
/
lib
/
utils
/
abs-round.js
blob
98f54bc68fd47569bf365cf6cb340b65a78c084a
1
export default function absRound (number) {
2
if (number < 0) {
3
return Math.round(-1 * number) * -1;
4
} else {
5
return Math.round(number);
6
}
7
}