Hi,

I am trying to use a Ramp to effect a fade out on the Audio File Player and wanted to use an exponential decay rather than linear.

Therefore I was calculating the new volume like this:

Exp = timeX / 1000

newVol = LaneVol * Power(0.75, Exp)

however the Exp only changes every second because the result is an integer.

I tried to change it as follows:

var

newVol : double

Exp: double

Sec: double

Sec = 1000.0

Exp = timeX / Sec

newVol = LaneVol * Power(0.75, Exp)

However this causes a compilation error on the line calculating the exponent:

Semantic error: Line 102, Col 15: Semantic error: Line 102, Col 15: Types are not compatible

It seems that you cannot divide a double by another double and therefore only integer division is possible?