1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
//! Rounding-scheme identifiers.
/// Rounding type for float-parsing.
///
/// Defines the IEEE754 rounding scheme to be used during float parsing.
/// In general, this should be set to `NearestTieEven`, the default
/// recommended rounding scheme by IEEE754 for binary and decimal
/// operations.
///
/// # FFI
///
/// For interfacing with FFI-code, this may be approximated by:
/// ```text
/// const int32_t NEAREST_TIE_EVEN = 0;
/// const int32_t NEAREST_TIE_AWAY_ZERO = 1;
/// const int32_t TOWARD_POSITIVE_INFINITY = 2;
/// const int32_t TOWARD_NEGATIVE_INFINITY = 3;
/// const int32_t TOWARD_ZERO = 4;
/// ```
///
/// # Safety
///
/// Assigning any value outside the range `[1-4]` to value of type
/// RoundingKind may invoke undefined-behavior.
/// Determine if we are rounding to the nearest value, then tying away.
pub
/// Determine if we are rounding to the nearest value, then tying away.
pub