class

Crystal::Macros::NumberLiteral

Inherits Crystal::Macros::ASTNode

Any number literal.

Instance methods

%(other : NumberLiteral) : NumberLiteral

Same as Number#%

Source
&(other : NumberLiteral) : NumberLiteral

Same as Number#&

Source
*(other : NumberLiteral) : NumberLiteral

Same as Number#*

Source
**(other : NumberLiteral) : NumberLiteral

Same as Number#**

Source
+(other : NumberLiteral) : NumberLiteral

Same as Number#+

Source
+

Same as Number#+

Source
-(other : NumberLiteral) : NumberLiteral

Same as Number#-

Source
-

Same as Number#-

Source
//(other : NumberLiteral) : NumberLiteral

Same as Number#//

Source
<(other : NumberLiteral) : BoolLiteral

Compares this node's value to another node's value.

Source
<<(other : NumberLiteral) : NumberLiteral

Same as Number#<<

Source
<=(other : NumberLiteral) : BoolLiteral

Compares this node's value to another node's value.

Source
<=>(other : NumberLiteral) : NumberLiteral

Compares this node's value to another node's value.

Source
>(other : NumberLiteral) : BoolLiteral

Compares this node's value to another node's value.

Source
>=(other : NumberLiteral) : BoolLiteral

Compares this node's value to another node's value.

Source
>>(other : NumberLiteral) : NumberLiteral

Same as Number#>>

Source
^(other : NumberLiteral) : NumberLiteral

Same as Number#^

Source
|(other : NumberLiteral) : NumberLiteral

Same as Number#|

Source
~

Same as Number#~

Source
kind

The type of the literal: :i32, :u16, :f32, :f64, etc.

Source
to_number

Returns the value of this number without a type suffix.

Source
zero?

Returns true if value is 0, false otherwise.

Source