Fixed the error cased by floating point. Most of the floating points was handled as 0.0.