Method: SJCL::BitArray.getPartial
- Defined in:
- lib/sjcl/bit_array.rb
.getPartial(x) ⇒ Object
70 71 72 73 |
# File 'lib/sjcl/bit_array.rb', line 70 def self.getPartial(x) bits = (x.to_f/0x10000000000).round return bits > 0 ? bits : 32 end |