deep_causality_num/float_106/getters.rs
1/*
2 * SPDX-License-Identifier: MIT
3 * Copyright (c) 2023 - 2026. The DeepCausality Authors and Contributors. All Rights Reserved.
4 */
5
6use crate::Float106;
7
8impl Float106 {
9 /// Returns the high-order component.
10 #[inline(always)]
11 pub const fn hi(self) -> f64 {
12 self.hi
13 }
14
15 /// Returns the low-order component.
16 #[inline(always)]
17 pub const fn lo(self) -> f64 {
18 self.lo
19 }
20
21 /// Converts to `f64`, discarding the low component.
22 #[inline]
23 pub const fn to_f64(self) -> f64 {
24 self.hi
25 }
26}