import type { RoundingMode } from '../types' ; import { isHalf } from '../utils' ; param value returns export const halfTowardsZero = ( value ) => { return isHalf ( value ) ? Math . sign ( value ) * Math . floor ( Math . abs ( value ) ) : Math . round ( value ) ; } ;