import type { RoundingMode } from '../types' ; import { isEven , isHalf } from '../utils' ; param value returns export const halfOdd = ( value ) => { const rounded = Math . round ( value ) ; if ( ! isHalf ( value ) ) { return rounded ; } return isEven ( rounded ) ? rounded - 1 : rounded ; } ;