I’m pretty useless when it comes to math and I have a problem I need help with.
This has nothing to do with schoolwork, it’s in fact about alcatel and the ticketextractor. I have two values that needs to be calculated in a c# application according to a formula specified in their documentation:
“The global callid is equal to: callid1 multiplied by 2 power 32 plus callid2”
As I said I’m not big with maths so that statement says nothing to me. If anyone know how to calculate it i’d appreciate it! Thanks
First thing is you’ll need a 64 bit value to store it in. Assuming your callId values are (32 bit) ints, you’d need to do something like this.
<<is the bit shift operator – shifting 32 bits is the equivalent of multiplying by 2^32.