struct Ven::Suite::MNumber
- Ven::Suite::MNumber
- Ven::Suite::MValue(BigDecimal)
- Ven::Suite::MStruct
- Struct
- Value
- Object
Overview
Ven's number data type.
Defined in:
ven/suite/model.crConstructors
Instance Method Summary
-
#length
Returns the length (#) of this model.
- #match(range : MRange)
-
#neg! : self
Mutably negates this number.
- #to_i(*args, **options)
- #to_i(*args, **options, &)
-
#to_num
Converts (casts) this model into a
Num
. -
#true?
Returns whether this model is semantically true.
Instance methods inherited from struct Ven::Suite::MValue(BigDecimal)
eqv?(other : MValue)
eqv?,
to_s(io)
to_s,
value : T
value
Constructor methods inherited from struct Ven::Suite::MValue(BigDecimal)
new(value : T)
new
Instance methods inherited from struct Ven::Suite::MStruct
[]=(referent : Model, value : Model) : Model | Nil
[]=,
[]?(index : Int)[]?(index : Range) []?, callable? : Bool callable?, eqv?(other : Model) : Bool eqv?, false? : Bool false?, field(name : String) : Model | Nil field, indexable? indexable?, initialize initialize, length : Int32 length, match(other : Model) match, nth(index : Num)
nth(range : MRange)
nth(other) nth, of?(other : MType) : Bool
of?(other : MAny)
of?(other) of?, set_referent(referent : Model, value : Model) : Model set_referent, to_bool(inverse = false) : MBool to_bool, to_num : Num to_num, to_str : Str to_str, to_vec : Vec to_vec, true? : Bool true?, weight : MWeight weight
Constructor methods inherited from struct Ven::Suite::MStruct
new
new
Constructor Detail
Instance Method Detail
def length
#
Description copied from struct Ven::Suite::MStruct
Returns the length (#) of this model.
def to_num
#
Description copied from struct Ven::Suite::MStruct
Converts (casts) this model into a Num
.
def true?
#
Description copied from struct Ven::Suite::MStruct
Returns whether this model is semantically true.