export function isCloseTo ( value1 , value2 ) { return Math . abs ( value1 - value2 ) <= 0.01 ; } export function snapNumberToCloseInteger ( value ) { const rounded = Math . round ( value ) ; return isCloseTo ( rounded , value ) ? rounded : value ; } export function ceilAwayFromZero ( value ) { return value > 0 ? Math . ceil ( value ) : Math . floor ( value ) ; }