Questions tagged [operands]

Operands are values acted upon by an operator, method, or other functional entity.

Operands differ from parameters in that they are the real values used or altered by a function, while the parameters are the named, abstract inputs used to define the function.

313 questions
3
votes
1 answer

Unsure about an 'and' operation

I came across a piece of code to calculate the number of binary bits needed for a decimal. nbits = 1 + (decimal and floor(log2(decimal))) I understand that 1+floor(log2(decimal)) returns the number of nbits. However I'm not sure what the and…
IsaOG
  • 51
  • 4
3
votes
3 answers

Why does Tcl expr consider some number as "empty" while it's really not empty?

Problem Statement I'm importing a set of coordinate from an unknown source, which I don't have privilege to look into. set yMin [lindex [lindex $bbox 0] 1] puts "yMin: <$yMin>" It works normally. yMin: <-6.149999999999999e-02> The brackets are…
Zureas
  • 53
  • 5
3
votes
1 answer

Operand data type float is invalid for '^' operator

I am searching for the Float type limitation but I can't find any post for ^ operand. I have a little mathematical phrase: ((@IntVar*((@FloatVar*1)/1200))*((1+((@FloatVar*1)/1200))^@IntValr))/(((1+((@FloatVar*1)/1200))^@IntVar)-1); and SQL raises…
Ali.azimi
  • 93
  • 2
  • 9
3
votes
2 answers

The left operand of '==' is a garbage value

I am getting this error when I analize my ios project The left operand of '==' is a garbage value this is what the code looks like where its occurring.. This method is used to sort the array I have that is returned to me from the DB. -…
HurkNburkS
  • 5,492
  • 19
  • 100
  • 183
2
votes
1 answer

Java calculator (order of operations)

How do you tell Java the order of operands? Well, I am pretty new to coding and a friend of mine in a higher course got asked to make a calculator and I got interested in how would it would work. I searched for it and the solutions I found are…
2
votes
2 answers

How to properly handle if statements containing both null checks and non-null checks together in an OR expression

I have some code that does the following: if(object == null || object.value.equals(" ")) { // do something } else { // do something else } The above seems dangerous to me because if I switched the order of the two conditions or changed this…
Lauren_G
  • 55
  • 6
2
votes
2 answers

How to emulate/capture unusual PHP operands from Kint

Background (Intro) Kint is a PHP debugging tool that works as a more powerful replacement to PHP's var_dump(), print_r(), and debug_backtrace(). One unusual -- for PHP at least -- feature of Kint is the ability to use real-time modifiers in the form…
Blizzardengle
  • 992
  • 1
  • 17
  • 30
2
votes
1 answer

Error Code: 1241. Workbench, MySQL, cannot resolve the parameters

I am using Workbench for writing queries. The following procedure is successfuly created (no problems with it). But when trying to execute the function i get this error: Error Code: 1241. Operand should contain 1 column(s) I will be thankfull if…
yocalee
  • 55
  • 6
2
votes
0 answers

python-telegram-bot: unsupported operand type(s) for &=: 'function' and '_UpdateType'

An error pops up in the python-telegram-bot library when the bot starts. File "/usr/local/lib/python3.5/dist-packages/telegram/ext/messagehandler.py", line 131, in __init__ self.filters &= Filters.update TypeError: unsupported operand type(s)…
loadalog
  • 23
  • 2
2
votes
3 answers

Terms used for addressing modes. [intel 8085]

In the documentation of a processor I am working on it says : Operand addressing modes available are implied, register, immediate, direct and register indirect (using the BC, DE and HL register pairs as 16-bit pointers to memory). Can…
2
votes
1 answer

asm error: "operand type mismatch for `rol'" with multiple input operands

Environment: Debian 9.5 - gcc 6.3.0 I can't get an embedded assembly function to work when I try to use multiple InputOperands. I have the following code working (basic rol function, 1 InputOperand, predefined rol operand): #include…
NdFeB
  • 109
  • 12
2
votes
4 answers

Lambda function - Unknown number of arguments

Currently, this is how I resolve a "and" function using lambda with two arguments: custom_function = lambda a, b: a and b But how can I resolve an unknown number of arguments, like: custom_function = lambda a, b, c, d, ...: what now? Anybody had…
Creative crypter
  • 1,348
  • 6
  • 30
  • 67
2
votes
1 answer

Assembly x86 error with SHL eax, ecx

Im having trouble with this compile error in my code for an Assembly x86 class, A2070: invalid instruction operands the line is shl eax, ecx ecx should be looping (decreasing by 1) and never be greater than 5 at this moment, so why can't I shift…
2
votes
2 answers

Django Error - unsupported operand type(s) for +: 'int' and 'strTypeError at

I received this error an i don't know why it happend. TypeError at /admin/ofac_sdn/ofac_sdn/ unsupported operand type(s) for +: 'int' and 'strTypeError. I have uploaded a csv directly to my models. These are the fields i used from the…
Cohen
  • 944
  • 3
  • 13
  • 40
2
votes
1 answer

a Java methods operand stack

Have been reading about the JVM internals recently and had a question about one of its elements - the method's operand stack. Does it have a max size and can we overflow it? Can we do it manually or what condition may cause it?
khusrav
  • 5,267
  • 5
  • 27
  • 38
1 2
3
20 21