(x)
| 18439 | } |
| 18440 | |
| 18441 | function roundUpPow10(x) { |
| 18442 | var y = Math.round(Math.log(Math.abs(x)) / Math.log(10)) |
| 18443 | if(y < 0) { |
| 18444 | var base = Math.round(Math.pow(10, -y)) |
| 18445 | return Math.ceil(x*base) / base |
| 18446 | } else if(y > 0) { |
| 18447 | var base = Math.round(Math.pow(10, y)) |
| 18448 | return Math.ceil(x/base) * base |
| 18449 | } |
| 18450 | return Math.ceil(x) |
| 18451 | } |
| 18452 | |
| 18453 | function defaultBool(x) { |
| 18454 | if(typeof x === 'boolean') { |
no outgoing calls
no test coverage detected
searching dependent graphs…