14 Commits

Author SHA1 Message Date
jos
fe694bfd12 Dropped string support for bitwise operators 2014-12-25 15:07:30 +01:00
jos
5a3e55f39b Added docs on bitwise and logical functions for expression parser 2014-12-23 21:25:34 +01:00
Favian Contreras
6c21826b4b Prohibit usage of integers. 2014-12-16 02:56:15 -08:00
Favian Contreras
b8b7c92ae1 Moved type specific computation outside of the bignumber library, and made more style touchups. 2014-12-15 16:00:28 -08:00
Favian Contreras
f36fbb3968 Added bitwise functions into the bignumber section of mathjs. Made more test cases as well. Shifts are not fully precise, but other bitwise opts are. 2014-12-15 01:02:41 -08:00
Favian Contreras
77001b40c0 Adjusted return types in the comments above the method; Integer isn't a JavaScript type. 2014-12-09 22:27:19 -08:00
Favian Contreras
50702826df Slightly lower the code size for the 2-input gates, to much the flow of the shifts. 2014-12-09 22:11:24 -08:00
Favian Contreras
632eba954a Uncommented bignumber portions, and added bignumber test cases. 2014-12-09 12:53:41 -08:00
Favian Contreras
a37bac1d4b Removed parseInt as it is doesn't work for strings with 'e' in them; using unary plus to convert strings to non-bignumber ints. Also uncommented out the BigNumber sections in preparation for their inclusion. 2014-12-08 10:14:58 -08:00
Favian Contreras
57079969e3 Renamed xor, removed string NaN failure (undefined behavior should be handled by js), and prohibited use of Units. 2014-11-27 06:16:37 -08:00
Favian Contreras
a6fa55122d Finished testing, and renamed some of the ops to avoid any future confusion with boolean ops. 2014-11-26 06:37:27 -08:00
Favian Contreras
3f94a673bd First "fully" tested function! (and.js) 2014-11-26 02:48:10 -08:00
Favian Contreras
1a7d5b1c66 Added shifts, but they are entirely untested. Cleaned up the other bitwise ops, and decided to do nand, nor, etc. after testing. 2014-11-25 11:47:03 -08:00
Favian Contreras
b4fdea0341 Basic functionality for most bitwise functions, but only minor testing. Shifts not done yet. 2014-11-25 02:45:11 -08:00