Method: Integer#width

Defined in:
lib/HDLRuby/hruby_high.rb,
lib/HDLRuby/hruby_tools.rb

#widthObject

Gets the bit width NOTE: returns infinity if the number is negative.



4995
4996
4997
# File 'lib/HDLRuby/hruby_high.rb', line 4995

def width
    return self.bit_length
end