Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #29678

Re: Write a program that can add,subtract,multiply,divide in binary??......

Newsgroups comp.lang.java.programmer
Date 2014-08-15 15:32 -0700
References <7428e654-026d-4059-b2c1-0a5ac2f96c26@googlegroups.com> <t2a2u99j8mq5dsp637imf3mlkr48rodtp0@4ax.com>
Message-ID <32fa7938-5f03-4a54-9ce8-1f3c9b26a7ce@googlegroups.com> (permalink)
Subject Re: Write a program that can add,subtract,multiply,divide in binary??......
From Lew <lewbloch@gmail.com>

Show all headers | View raw


Ruben Ongayo wrote, quoted or indirectly quoted someone who said :
>>Write a program that can add,subtract,multiply,divide in binary??......
>>please help :'(...........help

All Java addition, subtraction, multiplication, and division is done in binary.
JLS 4.2: 
"The integral types are byte, short, int, and long, whose values are 8-bit, 16-bit, 32-bit and 64-bit signed two's-complement integers, respectively, and char, whose values are 16-bit unsigned integers representing UTF-16 code units (ยง3.1).

"The floating-point types are float, whose values include the 32-bit IEEE 754 floating-point numbers, and double, whose values include the 64-bit IEEE 754 floating-point numbers."

-- 
Lew

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Write a program that can add,subtract,multiply,divide in binary??...... Ruben Ongayo <rubzm11@gmail.com> - 2014-06-19 17:57 -0700
  Re: Write a program that can add,subtract,multiply,divide in binary??...... rossum <rossum48@coldmail.com> - 2014-06-20 12:04 +0100
  Re: Write a program that can add,subtract,multiply,divide in binary??...... Jukka Lahtinen <jtfjdehf@hotmail.com.invalid> - 2014-06-22 00:50 +0300
  Re: Write a program that can add,subtract,multiply,divide in binary??...... Roedy Green <see_website@mindprod.com.invalid> - 2014-08-05 11:55 -0700
    Re: Write a program that can add,subtract,multiply,divide in binary??...... Lew <lewbloch@gmail.com> - 2014-08-15 15:32 -0700
  Re: Write a program that can add,subtract,multiply,divide in binary??...... Kevin McMurtrie <mcmurtrie@pixelmemory.us> - 2014-08-15 20:05 -0700

csiph-web