add logic code
use float
update README.md