0

c_double

 1 year ago
source link: https://doc.rust-lang.org/stable/std/ffi/type.c_double.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Type Definition std::ffi::c_double

1.64.0 · source · [−]
pub type c_double = f64;

Equivalent to C’s double type.

This type will almost always be f64, which is guaranteed to be an IEEE-754 double-precision float in Rust. That said, the standard technically only guarantees that it be a floating-point number with at least the precision of a float, and it may be f32 or something entirely different from the IEEE-754 standard.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK