Skip to main content

round_bf16

Function round_bf16 

Source
pub fn round_bf16(x: f64) -> f64
Expand description

Round x to bf16 (8-bit exponent, 7-bit mantissa) with round-to-nearest-even — the float precision dial (Phase 4). Idempotent, and a no-op on values already representable in bf16.