convert to float because (eps= int float) does not work

Fix bug.
Convert to float because new-weight might be int and (eps= int float) does not work.