Skip to main content

round_to

Function round_to 

Source
pub fn round_to(p: Precision, x: f64) -> f64
Expand description

A value as the datapath of precision p stores it (bf16 / fp16 / fp32 rounding; integers untouched).