Simplify client::truncate_double