File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,10 @@ impl SignedDecimal {
67
67
/// ```
68
68
/// # use cosmwasm_std::{SignedDecimal, Int128};
69
69
/// assert_eq!(SignedDecimal::new(Int128::one()).to_string(), "0.000000000000000001");
70
+ ///
71
+ /// let atoms = Int128::new(-141_183_460_469_231_731_687_303_715_884_105_727_125);
72
+ /// let value = SignedDecimal::new(atoms);
73
+ /// assert_eq!(value.to_string(), "-141183460469231731687.303715884105727125");
70
74
/// ```
71
75
#[ inline]
72
76
pub const fn new ( value : Int128 ) -> Self {
Original file line number Diff line number Diff line change @@ -79,6 +79,10 @@ impl SignedDecimal256 {
79
79
/// ```
80
80
/// # use cosmwasm_std::{SignedDecimal256, Int256};
81
81
/// assert_eq!(SignedDecimal256::new(Int256::one()).to_string(), "0.000000000000000001");
82
+ ///
83
+ /// let atoms = Int256::new(-141_183_460_469_231_731_687_303_715_884_105_727_125);
84
+ /// let value = SignedDecimal256::new(atoms);
85
+ /// assert_eq!(value.to_string(), "-141183460469231731687.303715884105727125");
82
86
/// ```
83
87
#[ inline]
84
88
pub const fn new ( value : Int256 ) -> Self {
You can’t perform that action at this time.
0 commit comments