Often in cases of working with data and time, it is necessary to convert to decimal, with this you will get the value in decimal through a client action and also available as a function.