[][src]Function avr_libc::dtostrf

pub unsafe extern "C" fn dtostrf(
    __val: f64,
    __width: i8,
    __prec: u8,
    __s: *mut i8
) -> *mut i8

\ingroup avr_stdlib The dtostrf() function converts the double value passed in \c val into an ASCII representationthat will be stored under \c s. The caller is responsible for providing sufficient storage in \c s.

Conversion is done in the format \c "[-]d.ddd". The minimum field width of the output string (including the possible \c '.' and the possible sign for negative values) is given in \c width, and \c prec determines the number of digits after the decimal sign. \c width is signed value, negative for left adjustment.

The dtostrf() function returns the pointer to the converted string \c s.