ruby , find max size integers

Ruby code posted
created at 31 Jan 17:33

Edit | Back
1
2
machine_max_signed = 2**(machine_bits-1) - 1
machine_max_unsigned = 2**machine_bits - 1
88 Bytes in 2 ms with coderay