Struct qt_core::q_locale::FloatingPointPrecisionOption
source · pub struct FloatingPointPrecisionOption(/* private fields */);
Expand description
This enum defines constants that can be given as precision to QString::number(), QByteArray::number(), and QLocale::toString() when converting floats or doubles, in order to express a variable number of digits as precision.
C++ enum: QLocale::FloatingPointPrecisionOption
.
This enum defines constants that can be given as precision to QString::number(), QByteArray::number(), and QLocale::toString() when converting floats or doubles, in order to express a variable number of digits as precision.
This enum was introduced or modified in Qt 5.7.
See also toString(), QString, and QByteArray.
Implementations§
source§impl FloatingPointPrecisionOption
impl FloatingPointPrecisionOption
sourcepub const FloatingPointShortest: FloatingPointPrecisionOption = _
pub const FloatingPointShortest: FloatingPointPrecisionOption = _
The conversion algorithm will try to find the shortest accurate representation for the given number. “Accurate” means that you get the exact same number back from an inverse conversion on the generated string representation. (C++ enum variant: FloatingPointShortest = -128
)
Trait Implementations§
source§impl Clone for FloatingPointPrecisionOption
impl Clone for FloatingPointPrecisionOption
source§fn clone(&self) -> FloatingPointPrecisionOption
fn clone(&self) -> FloatingPointPrecisionOption
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for FloatingPointPrecisionOption
impl Debug for FloatingPointPrecisionOption
source§impl From<FloatingPointPrecisionOption> for c_int
impl From<FloatingPointPrecisionOption> for c_int
source§fn from(value: FloatingPointPrecisionOption) -> Self
fn from(value: FloatingPointPrecisionOption) -> Self
source§impl From<i32> for FloatingPointPrecisionOption
impl From<i32> for FloatingPointPrecisionOption
source§impl PartialEq for FloatingPointPrecisionOption
impl PartialEq for FloatingPointPrecisionOption
source§fn eq(&self, other: &FloatingPointPrecisionOption) -> bool
fn eq(&self, other: &FloatingPointPrecisionOption) -> bool
self
and other
values to be equal, and is used
by ==
.