does anyone know how to effectively input a non-integer weapon weight (currently it rounds down)?

i made a riposte function. but it has the old problem of calculating a miss as a hit. more specifically, the new function result replaces the old one. how do i get the functions to have different results?

edit: just noticed that both hits are calculated using the same rolls. i can fix that but it won't be very clean.

edit2: okay i think i fixed it.

edit3: so i chatted with the creator. non-integer variables don't work.