# Complex DataPoint.

Community..

I have a problem accessing normal data point values in a complex data point. I tried every way to access it,

normal data points, which I have as

MemoryUsageKB

MemoryLimitHighKB

MemoryLimitHardKB

I need the value of this datapoint in a complex datapoint to do some calculations and to put logic on it. Since values are in KB, they are being denoted with Scientific Notation, So I need to pull them in a Groovy so I can import some libraries there for such calculation (i.e. java.math.BigDecimal)

but How can I retrieve the values of the current datapoint in Groovy) I tried the method below, but It's not working. (Can someone help me understand how a logic monitor works and what I am missing?)

double memoryUsageKB = datapoints["MemoryUsageKB"].doubleValue

double memoryLimitHighKB = datapoints["MemoryLimitHighKB"].doubleValue

double memoryLimitHardKB = datapoints["MemoryLimitHardKB"].doubleValue

That is odd, I can't seem to replicate it, although I'm simulating it via a script not perfmon, but that shouldn't matter normally.