add type checks and rounding on wave data values