Results 1 to 1 of 1
Thread: Matrix Value operation
- 04-09-2012, 06:15 PM #1
Member
- Join Date
- Apr 2012
- Posts
- 1
- Rep Power
- 0
Matrix Value operation
Hi, gurus, I really need some help with something at my work.
Ok, lets begin, they are asking me how to do something in Java. The information they give me is this, this is an array :
{ "reportingGroups": [ { "description" : "Total traffic", "absoluteLimits" :{ "bidirVolume" : [51,512,1024,1536,2048,2560,3072,3584,4096,4608,512 0], "resetPeriod" : { "volume": "monthly" } } } ]}
If you see the "bidirVolume has several values. Now below, there is this code which makes reference to one of those values:
((not(inRange(AccessData.subscriber.locationInfo.s gsnAddress,Sgsns["Home"].ips))) && (AccessData.subscriber.accumulatedUsage.reportingG roup["total"].isLimitSurpassed["bidirVolume"][5]))
If you see, the method "isLimitSurpassed" is doing reference to the ["bidirVolume"][5] value, which should be 2560.
The question is, how do I multiply the ["bidirVolume"][5] by 0.8 before the isLimitSurpassed method is executed on the value? I just need to multiply that value by 0.8, can somebody help me with this, please??
Similar Threads
-
Technologies and Operation
By m jawad in forum Threads and SynchronizationReplies: 1Last Post: 06-24-2011, 01:14 AM -
Why am I getting this Unsupported Operation Exception?
By ozzyman in forum New To JavaReplies: 6Last Post: 04-11-2011, 07:39 PM -
Help with bit wise and bit shift operation
By tiagomac in forum Advanced JavaReplies: 3Last Post: 02-25-2011, 04:15 PM -
XOR operation on bytes
By divyanshu023 in forum New To JavaReplies: 1Last Post: 09-17-2009, 07:11 PM -
Bit Wise operation: shifting
By rueter in forum New To JavaReplies: 1Last Post: 06-27-2009, 06:51 AM
Bookmarks