Issue with using float numbers with variables

I am trying to use macros to automate some calculations in my file. I save 2 numbers (which are less than 1) and then use register "= to calculate the result it round them to zero. But when I type the numbers instead of using registers as variables it works fine. Is there a way to suppress this behavior in nvim?