00:00
00:00
Newgrounds Background Image Theme

christopher54000 just joined the crew!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

Bitwise calculator

1,486 Views | 15 Replies
New Topic Respond to this Topic

Bitwise calculator 2015-10-30 11:29:40


Useful calculator that calculate the bitwise operations: and, or, xor, not, shift left and shift right on decimal, binary and hexadecimal numbers.

Here is the link: Bitwise Calculator

Response to Bitwise calculator 2015-11-02 06:51:08


did anyone use it?

Response to Bitwise calculator 2015-12-03 00:21:44


I can see the use of it, But using bits and hexadecimal is only usefull in a handfull of ways (Talking from a java perspective, Maybe in other languages it's more efficient)

no I haven't used it, If I ever want to mask anything I'll make sure to use it though :)


Some things in life are better untouched......

........That Girl with STI is a perfect example.......

Response to Bitwise calculator 2015-12-03 16:56:25


http://www.convertforfree.com/prime-factorization-calculator/

Why is there such a low limit? 2^53 is small. Python has native arbitrary precision that goes far beyond this.


∀x (∃e (e ∈ x ∧ ∀x ¬(x ∈ e)) ∨ ∃y ¬∃e (e ∈ x ∧ ¬∃z (z ∈ y ∧ z ∈ e ∧ ∀x ¬((x ∈ y ∧ x ∈ e) ∧ ¬(x = z)))))

Response to Bitwise calculator 2015-12-05 19:31:19


At 12/3/15 04:56 PM, sharpnova wrote: http://www.convertforfree.com/prime-factorization-calculator/

Why is there such a low limit? 2^53 is small. Python has native arbitrary precision that goes far beyond this.

This converter is written in JS, and this is the limit for numbers in JS...

Response to Bitwise calculator 2015-12-05 21:57:24


At 12/5/15 07:31 PM, gamestoenjoy wrote: This converter is written in JS, and this is the limit for numbers in JS...

No, it isn't.

Response to Bitwise calculator 2015-12-06 20:21:52 (edited 2015-12-06 20:22:53)


At 12/5/15 07:31 PM, gamestoenjoy wrote:
At 12/3/15 04:56 PM, sharpnova wrote: http://www.convertforfree.com/prime-factorization-calculator/

Why is there such a low limit? 2^53 is small. Python has native arbitrary precision that goes far beyond this.
This converter is written in JS, and this is the limit for numbers in JS...

I'm basically asking why you didn't use Python

And as the great Diki has pointed out JS gets up to 64


∀x (∃e (e ∈ x ∧ ∀x ¬(x ∈ e)) ∨ ∃y ¬∃e (e ∈ x ∧ ¬∃z (z ∈ y ∧ z ∈ e ∧ ∀x ¬((x ∈ y ∧ x ∈ e) ∧ ¬(x = z)))))

Response to Bitwise calculator 2015-12-13 07:19:07


At 12/6/15 08:21 PM, sharpnova wrote: I'm basically asking why you didn't use Python

I wanted to use client based programming language and not server based...

Response to Bitwise calculator 2015-12-13 10:30:25


At 12/13/15 07:19 AM, gamestoenjoy wrote:
At 12/6/15 08:21 PM, sharpnova wrote: I'm basically asking why you didn't use Python
I wanted to use client based programming language and not server based...

Yes Javascript is client side. So I still don't get the limitation.

It's a minor thing. A curiosity I noticed. You did something weird and wrong there.

I'd take a look at your code but I just don't have time. I have to attend the Skellige coronation this evening and I need to prepare by killing hundreds of sirens and drowners so I'm not distracted by a bunch of question marks on my map.


∀x (∃e (e ∈ x ∧ ∀x ¬(x ∈ e)) ∨ ∃y ¬∃e (e ∈ x ∧ ¬∃z (z ∈ y ∧ z ∈ e ∧ ∀x ¬((x ∈ y ∧ x ∈ e) ∧ ¬(x = z)))))

Response to Bitwise calculator 2015-12-18 15:39:27


At 12/13/15 10:30 AM, sharpnova wrote: Yes Javascript is client side. So I still don't get the limitation.

Buddy check here about the number limitation:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER

Response to Bitwise calculator 2015-12-19 02:13:06


At 12/18/15 03:39 PM, gamestoenjoy wrote:
At 12/13/15 10:30 AM, sharpnova wrote: Yes Javascript is client side. So I still don't get the limitation.
Buddy check here about the number limitation:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER

Friend I'm not sure what that means. But it sounds like "max safe integer" is smaller than the max integer you can use in practice which is 2^64 - 1


∀x (∃e (e ∈ x ∧ ∀x ¬(x ∈ e)) ∨ ∃y ¬∃e (e ∈ x ∧ ¬∃z (z ∈ y ∧ z ∈ e ∧ ∀x ¬((x ∈ y ∧ x ∈ e) ∧ ¬(x = z)))))

Response to Bitwise calculator 2015-12-26 07:45:13


At 12/19/15 02:13 AM, sharpnova wrote: Friend I'm not sure what that means. But it sounds like "max safe integer" is smaller than the max integer you can use in practice which is 2^64 - 1

Yes, you are probably right...

Response to Bitwise calculator 2016-01-20 20:59:47


Many languages already support basic bitwise operators, for example, in most languages, you can use

a | b for OR
a & b for AND
a ^ b for XOR


3D is Key.

Response to Bitwise calculator 2016-01-24 10:15:11


At 1/20/16 08:59 PM, ElectroBit wrote: Many languages already support basic bitwise operators, for example, in most languages, you can use

a | b for OR
a & b for AND
a ^ b for XOR

Yes but if you don't want to write a program for each calculation you have, then this tool will do the job :)

Response to Bitwise calculator 2016-01-25 20:39:15


Bitwise operators can be really useful with a Python add-on called CWiiD.


3D is Key.

Response to Bitwise calculator 2016-01-27 07:14:58


At 1/25/16 08:39 PM, ElectroBit wrote: Bitwise operators can be really useful with a Python add-on called CWiiD.

I guess so, but sorry I don't know Python...