/// Creates a new Numeric value.
///
/// # Panic
/// It will panic if the scale exceed 37.
Creates a new Numeric value.
Creates a new Numeric value .
pub fn new_with_scale(value: i128, scale: u8) -> Self {
        // scale cannot exceed 37 since a
        // max precision of 38 is possible here.
        assert!(scale < 38);
        Numeric { value, scale }
    }
pub fn new_with_scale ( value : i128 , scale : u8 ) -> Self { // scale cannot exceed 37 since a // max precision of 38 is possible here. assert ! ( scale 38 ) ; Numeric { value , scale } }
Creates a new Numeric value.
Creates a new Numeric value .
value
i128
scale
u8
panic
It will panic if the scale exceed 37.
It will panic if the scale exceed 37 .