Fixed floating point value error

Fixed floating point value error. Added Check procedure. Final version