pub fn div_ceil(n: f64, d: f64) -> f64 {
    let v = n / (d / 10.0);
    let (v, sign) = if v < 0.0 { (v.abs(), -1.0) } else { (v, 1.0) };

    if v < 100.0 {
        v.ceil() / 10.0 * sign
    } else {
        (v / 10.0).ceil() * sign
    }
}
/// Divide numerator by denominator, with ceiling.
///
/// If the result of the division is less than 10.0, truncate the result
/// to the next highest tenth.
///
/// Otherwise, truncate the result to the next highest whole number.
///
/// # Examples:
///
/// ```
/// use uu_numfmt::div_ceil;
///
/// assert_eq!(div_ceil(1.01, 1.0), 1.1);
/// assert_eq!(div_ceil(999.1, 1000.), 1.0);
/// assert_eq!(div_ceil(1001., 10.), 101.);
/// assert_eq!(div_ceil(9991., 10.), 1000.);
/// assert_eq!(div_ceil(-12.34, 1.0), -13.0);
/// assert_eq!(div_ceil(1000.0, -3.14), -319.0);
/// assert_eq!(div_ceil(-271828.0, -271.0), 1004.0);
/// ```
Divide numerator by denominator, with ceiling.
If the result of the division is less than 10.0, truncate the result
to the next highest tenth.

Otherwise, truncate the result to the next highest whole number.
Divide numerator by denominator with ceiling . If the result of the division is less than 10 . 0 truncate the result to the next highest tenth . Otherwise truncate the result to the next highest whole number .
pub fn div_ceil(n: f64, d: f64) -> f64 {
    let v = n / (d / 10.0);
    let (v, sign) = if v < 0.0 { (v.abs(), -1.0) } else { (v, 1.0) };
    if v < 100.0 {
        v.ceil() / 10.0 * sign
    } else {
        (v / 10.0).ceil() * sign
    }
}
pub fn div_ceil ( n : f64 , d : f64 ) -> f64 { let v = n / ( d / 10.0 ) ; let ( v , sign ) = if v < 0.0 { ( v . abs ( ) , - 1.0 ) } else { ( v , 1.0 ) } ; if v < 100.0 { v . ceil ( ) / 10.0 * sign } else { ( v / 10.0 ) . ceil ( ) * sign } }
Divide numerator by denominator, with ceiling.
Divide numerator by denominator with ceiling .
n
f64
d
f64
n
f64
d
f64
examples:
```
use uu_numfmt::div_ceil.


` ` ` use uu_numfmt :: div_ceil .