The log10 function in math.h is behaving differently from what I expected.
My understanding is that log10(10000) will produce a result of 4 but I get 2.0553e-320
I had problems with DOUBLE and FLOAT in Spark.variable. At this time, neither of these is working (only INT and STRING seem to work). I ended up using a float (or double) for the calculations but using a Spark.variable of type STRING. Then I converted the float to a STRING using sprintf(). It’s ugly but until they fix the cloud API, it’s the only way it works.