_value type is int but I need float

Hi I am strugling with var type at the moment.

to make it simple, I want to divide an integer and get a float.

if I do a request like that, it is working but _value is an integer, I want to see it as a float.
I am calculating the energy base on a time & power.
time is in the “agregate” database as integer.

I tried to switch to float using a decimal value for power but I have a type error :
runtime error: type conflict: float != int

I also try the toFloat() function but it did not change the game

power = 3.0

from(bucket: “agregate”)
|> range(start: -5d)
|> filter(fn: (r) => r[“friendly_name”] == “charge VE”)
|> filter(fn: (r) => r[“_field”] == “value”)
|> filter(fn: (r) => r[“_measurement”] == “minute”)

|> map(fn: (r) => ({r with _value: float(v: r._value * power/60)}))
|> yield(name: “mean”)

If someone can help !