max - Rust: maximum possible value for f64? -



max - Rust: maximum possible value for f64? -

maybe stupid question i've checked rust documentation, stackoverflow , half of net in lastly 2 hours haven't found working reply yet. want know how can initialize variable of type f64 maximum possible value.

i tried things like:

std::f64::max f64::max_value f64::consts::max_value core::f64::max_value

and other variants compiler complains unresolved name. i'm using no namespaces (like no "use xx::yyy" , i'm trying initialize variable this:

let mut min = f64::consts::max_value;

do miss or there no possibility largest possible value f64? also, since i'm asking: if there's possibility them please tell me ones other info types :)

according std::f64 module documentation, next should want:

std::f64::max_value

which declared as

pub static max_value: f64 = 1.7976931348623157e+308_f64

i found searching google "f64 maximum value rust".

max rust min

Comments

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -