class Ven::Suite::MNumber
- Ven::Suite::MNumber
- Ven::Suite::MClass
- Reference
- Object
Overview
Ven's number data type.
Defined in:
ven/suite/model.crConstant Summary
-
CACHE =
{} of String => BigRational
Constructors
Instance Method Summary
- #-
- #eqv?(other : Num)
-
#to_num
Converts (casts) this model into a
Num. - #to_s(io)
-
#true?
Returns whether this model is semantically true.
- #value : BigRational
- #value=(value : BigRational)
Instance methods inherited from class Ven::Suite::MClass
callable? : Bool
callable?,
eqv?(other : Model) : Bool
eqv?,
field(name : String) : Model | Nil
field,
is_bool_false? : Bool
is_bool_false?,
of?(other : MType) : Boolof?(other) of?, 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?, truth=(truth : Bool) truth=, truth? truth?
Constructor Detail
Instance Method Detail
def to_num
#
Description copied from class Ven::Suite::MClass
Converts (casts) this model into a Num.
def true?
#
Description copied from class Ven::Suite::MClass
Returns whether this model is semantically true.