mirror of
https://github.com/serde-rs/json.git
synced 2025-10-02 15:26:00 +00:00
commit
a9e089a2ce
@ -75,13 +75,13 @@ where
|
|||||||
|
|
||||||
// FLOAT OPS
|
// FLOAT OPS
|
||||||
|
|
||||||
/// Calculate `b` from a a representation of `b` as a float.
|
/// Calculate `b` from a representation of `b` as a float.
|
||||||
#[inline]
|
#[inline]
|
||||||
pub(super) fn b_extended<F: Float>(f: F) -> ExtendedFloat {
|
pub(super) fn b_extended<F: Float>(f: F) -> ExtendedFloat {
|
||||||
ExtendedFloat::from_float(f)
|
ExtendedFloat::from_float(f)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Calculate `b+h` from a a representation of `b` as a float.
|
/// Calculate `b+h` from a representation of `b` as a float.
|
||||||
#[inline]
|
#[inline]
|
||||||
pub(super) fn bh_extended<F: Float>(f: F) -> ExtendedFloat {
|
pub(super) fn bh_extended<F: Float>(f: F) -> ExtendedFloat {
|
||||||
// None of these can overflow.
|
// None of these can overflow.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user