Line data Source code
1 0 : export function toInteger(value: number) { 2 0 : const num = +value; 3 0 : if (num < 0) { 4 0 : return Math.ceil(num); 5 0 : } else { 6 0 : return Math.floor(num); 7 0 : } 8 0 : }