Double variable inserted as 0 instead of NULL on DB

Hi, thanks for your reply.
I tried this solution but I get this error:
image