Function tidb_query_datatype::codec::convert::truncate_f64 [−][src]
pub fn truncate_f64(f: f64, flen: u8, decimal: u8) -> Res<f64>
truncate_f64
(TruncateFloat
in TiDB) tries to truncate f.
If the result exceeds the max/min float that flen/decimal
allowed, returns the max/min float allowed.