pub fn decode_price(
bytes: &[u8],
precision: u8,
field: &'static str,
row: usize,
) -> Result<Price, EncodingError>Expand description
Decodes a [Price] from raw bytes with bounds validation.
Uses corrected raw values to handle floating-point precision errors in stored data.
Sentinel values (PRICE_UNDEF, PRICE_ERROR) are preserved unchanged.
ยงErrors
Returns an EncodingError::ParseError if the price value is out of bounds.