|
Femtosecond posted:I have a bit of code that I'm working on, and it has a use of '&' that I've never seen before. 3 is 0011 in binary. & is the bit-wise and operator. Basically, its giving you a random number between 0 and 3 (inclusive). It is equivalent to "% 4"
|
# ¿ Mar 3, 2008 06:14 |
|
|
# ¿ Apr 29, 2024 05:01 |
|
very posted:That seems like a bad idea. Somebody is going to want to add another case, change the 3 to a 4, and now you have a bug. Yup. Seems like a pretty bad idea in general.
|
# ¿ Mar 4, 2008 04:23 |
|
Hughmoris posted:I'm trying to create a budget and expense tracker in google spreadsheet and I'm having a bit of trouble writing a function. Try code:
|
# ¿ Sep 2, 2012 21:46 |