I cannot use '/' and loops and I have to divide some numbers.
operands are 32-bit and I can't use recursion.
I thought of using shr but it only gives me 2^n divison and it also won't save the reminder.
any Ideas?
I'm having a problem with the output of my division. When I enter both real parts of 5 and 3 and imaginary parts of 4 and 2, I get 2.000000 + -2.000000i instead of 1.769231 + 0.153846i.
Here's the case for dividing in the main program:
case 4:
…
I'm making a formatter for currency string, for example I have Int:
let a: Int = 10
let b: Int = 10000
let c: Int = 10000000
I want them to be formatted like:
let a1:String = "10"
let b1:String = "10 000"
let c1:String = "10 000 000"
So I need…
I have been creating code for a small game for a project and have run into a small error which I can't fix, so I was wondering whether someone can help me. The code needs to find the differences between two variables input by the user, here is the…
This is my program. I don't know where im dividing by zero so i cannot fix this error.
Exception in thread "main" java.lang.ArithmeticException: / by zero
This program is supposed to reverse any number's digits.
ex. 57823 --> 32875
I can't get that…
I have looked all over the internet for a simple-to-understand evaluation of how to multiply and divide in masm32 assembly. My questions are:
Where should I place the numbers being multiplied?
Where should I place the numbers being divided?
Where…
Please tell me how to divide the numbers by the column, but taking into account the fact that the numbers in the method will be transferred by the type String (the number to be divided, the number to which to divide). Because numbers can simply be…
I am trying to get a value of trackbar / slider, divide it by 100 and display the value in label.
I get an error Operator '/' cannot be applied to operands of type 'int' and 'string'.
Here's my try:
private void siticoneTrackBar1_Scroll(object…